问题
I can't seem to make it so in Highstock's AreaSpline chart in ReactJS so that markers are only visible when there are less than x in the line. I checked several fiddles and Highcharts is working with the exact same configuration.
Not working:
https://jsfiddle.net/0qybw7jt/
Working:
https://jsfiddle.net/8uwvm1np/
The difference is found within the constructor chart vs stockChart
回答1:
I had to explicitly set marker: enabled to undefined, see code:
plotOptions: {
series: {
marker: {
enabled: undefined,
enabledThreshold: 1,
radius: 4
}
}
},
来源:https://stackoverflow.com/questions/51177157/highcharts-highstock-enabledthreshold-feature-not-working