Skip to content

Commit

Permalink
fix legend symbol on chart
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4tim committed Sep 17, 2024
1 parent 1187620 commit ead55a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/sensor/Chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ import { Chart } from "highcharts-vue";
import stockInit from "highcharts/modules/stock";
import unitsettings from "../../measurements";
Highcharts.seriesTypes.spline.prototype.drawLegendSymbol = function (legend, item) {
this.options.marker.enabled = true;
Highcharts.LegendSymbol.lineMarker?.call(this, legend, item);
this.options.marker.enabled = false;
};
stockInit(Highcharts);
export default {
Expand Down Expand Up @@ -165,6 +171,7 @@ export default {
.highcharts-legend-item .highcharts-point {
fill: #000 !important;
stroke-width: 2;
}
.highcharts-legend-item-hidden text {
Expand Down

0 comments on commit ead55a5

Please sign in to comment.