score:5
Accepted answer
You have two options:
- enable marker for whole series, but disable for each point
- use two series, one for data, one for legend and link them together by ID
Example:
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
plotOptions: {
series: {
marker: {
enabled: false
}
}
},
series: [{
data: [],
name: 'test',
id: 'id-1',
color: 'red',
marker: {
enabled: true
}
}, {
linkedTo: 'id-1',
color: 'red',
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0]
}]
});
score:1
you can do something like this
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
<div id="container" style="height: 400px; min-width: 310px"></div>
</body>
</html>
<script type="text/javascript">
$(function () {
Highcharts.Series.prototype.drawPoints = function () { };
$('#container').highcharts('StockChart', {
title: {
text: 'This is yongjing.chen test 3'
},
legend: { enabled: true, symbolWidth: 50 },
plotOptions: {
series: {
marker: {
enabled: true, radius: 6, symbol: 'square'
}
}
},
series: [{
data: [1, 171.5, 306.4, 2.2, 300, 2, 200],
name: 'CPU',
id: 'id-1',
color: 'red'
}]
});
});
</script>
Source: stackoverflow.com
Related Query
- Series markers disable on lines and enable on legend in Highchart
- Mark a point and draw plot lines in Multi Series Highchart
- Disable highchart legend if series name = 'SP'
- Highchart marker clickable disable and enable condition base?
- How to change series legend text color in HighChart chart?
- How can I extend the lines of this Highchart series to the edges of my chart area?
- Group series names in columns in highchart horizontal legend
- put the highchart legend to the bottom of the chart and horizontally centered
- How to add Highchart Bar lines and lables?
- HighChart hide other series on click legend
- How to set series-label to false by default and change the color of series label text in highchart
- Showing HighCharts series name on x-axis and in legend
- remove previous markers and retain only single marker highchart
- Enable and disable Highcharts tooltip with drill menu
- Highchart Axis with only min and max series value
- Enable Drilldown in highchart without modifying the series
- Why is the legend of my HighChart PieChart behaving irradically, when I update my series data?
- Highcharts no longer animates and readjusts/rescales chart upon addition and removal of series in legend after upgrading to jQuery 1.10
- Use different markers in the same series of an irregular time highchart
- pie chart legend overlap with older legend when replace series in highchart
- Unable to create Highchart where i can show different - different data on clicking category and series
- Highcharts - How to I disable a series when I enable another one?
- HighCharts - Enable the markers for the series which has only single data point?
- Not able to disable legend title / enable legend title as required while expoting Highcharts
- Customize Highchart Map's legend type and color
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- Disable legend item click in a Highchart defined as JSON
- highcharts legend marker and series marker with different size
- Displaying highchart columnrange charting xAxis, yAxis and series
- Drawind Dynamic series and points with Highchart and ajax
More Query from same tag
- How to let x axis title still show on the bottom when setting fontsize attribute in Highcharts
- Testing for NaN in a JS array?
- Plotting JSON data with angular2-highchart
- HighCharts navigator to keep range after async data load. (LazyLoad)
- How can i change the length of the title that it is dynamic?
- Highchart column range with hour
- Draw sankey when multiple entries have the same name
- How to create a Highcharts extension for an Angular 6 Component
- Multiple series data on HighCharts column
- Error while adding and removing plotLine on highcharts
- How to change the series plot display inside the scrollbar of the RangeSelector in highcharts.js
- Highcharts: export image show wrong color and line width if user change the color and/or line width
- Set additional information in highcharts tooltip
- HighChart with multple JSON api data
- Highstocks, line missing but data is there
- react-highcharts vs highcharts
- Highcharts: Value will not be updated
- Drawing a simple graph using projected lines
- Add two json data series in one highchart
- Highcharts don't connect points between years
- Highcharts and phantomjs error. Can't find variable Highcharts
- Javascript: Trying to load highcharts without freezing the browser
- Add icon to legend text
- Javascript not working after renaming asp.net page
- how to show different colors for each grid line using highcharts?
- change background color for highchart candlestick plot
- HighStocks - x-axis Gridlines on each separate y-axis
- Highcharts plot in fancybox
- Highcharts xrange Refusing to follow HOVER or SCROLLBAR behavior
- Any way to set min & max value for HighCharts Heatmap data?