score:2
You can disable marker for each point except the last one.
On start:
series: [{
name: 'Random data',
data: (function () {
// generate an array of random data
var data = [],
time = (new Date()).getTime(),
i;
for (i = -19; i <= 0; i += 1) {
data.push({
x: time + i * 1000,
y: Math.random(),
marker: {
enabled: i === 0
}
});
}
return data;
}())
}]
And disabling marker in the last point before the new point is added:
events: {
load: function () {
// set up the updating of the chart each second
var series = this.series[0];
setInterval(function () {
var x = (new Date()).getTime(), // current time
y = Math.random();
series.data[series.data.length - 1].update({
marker: { enabled: false }
}, false)
series.addPoint([x, y], true, true);
}, 1000);
}
}
example: http://jsfiddle.net/m9ykaaa7/
score:1
You have to hide the markers for data points by default. You have to update the highcharts object to contain the following options:
plotOptions: {
series: {
marker: {
enabled: false
}
}
}
Now every time when you add a point, you have to add it like:
series.addPoint({
x: x,
y: y,
marker: {enable: true}
});
And hide the marker for last point by updating the property:
last_point.update({ marker: { enabled: false } });
Here's a working example: http://jsfiddle.net/10yfarod/
Edit
You can add the marker after adding the point to the series. But this messes up with that smooth line animation. To avoid that you can use the setTimeout to show the marker after 500ms when the animation finishes.
Here's a working example: http://jsfiddle.net/10yfarod/1/
Source: stackoverflow.com
Related Query
- remove previous markers and retain only single marker highchart
- Remove Export and print button plugin on highchart chart
- Disable marker hover in only one marker of highchart
- Series markers disable on lines and enable on legend in Highchart
- Showing marker for separate values only in line chart in HIghchart
- how to take only categories for x-axis and remove unwanted scaling in Highstock chart
- Highchart Axis with only min and max series value
- Why does my highchart only expand horizontally to fill its containing div, and not vertically?
- HighCharts - Enable the markers for the series which has only single data point?
- Show label of stacked columns only on hover (and also the previous and next column)
- I had follow someone code samples and try apply to my HighChart program but I can't get it work at all
- Highcharts markers on legend and hover ONLY
- Position next and previous buttons on far right and left side of the Highchart
- Show categories and remove numbers in Angular Gauge Highchart
- How to get Highchart plots plotted only for starting and ending points
- highchart map create marker by click and get lat long coordinates
- How to dynamiccally add and remove highchart in angular 10?
- Highchart spline Chart with no markers and legends markers as circle's
- Can we stack a 2 columns in a single column in basic column Highchart and let the other columns let it be?
- How to remove Board and HR/CFO from Highchart organization?
- When there is a plotband and a plotline emerging from yAxis how to set a particular width for plotband only in highchart
- Highchart dynamically draw Legend marker and trigger mouseover event
- Highcharts - Is it possible to have marker visible only in navigator, and not visible in main chart?
- Remove spaces between axes and columns in Highcharts with only one category
- Highchart marker clickable disable and enable condition base?
- Retain Marker color on Line History Series in Highchart
- remove the single quote from json data, highchart dotnet api
- Manage multiple highchart charts in a single webpage
- How to display highchart series line marker symbol from tooltip formatter?
- Highchart - change color of one x-axis label only
More Query from same tag
- Display label stack Label in Highcharts
- how to position highcharts - highstock buttons properly?
- How to dynamically add grouped _categories in Highcharts in MVC
- How to change the layout and the alignment of the legend in the Highchart?
- Change data by download as pdf in Highcharts
- Categories are skipped in highcharts on xAxis
- Add Gradient Pie Chart functionality to Highcharts-ng
- Assigning colors in highchart base on the result of javascript
- highcharts - Draw horizontal line outside the chart area
- HighCharts with Dynamic Data not working
- Organization Chart Double Color in 1 Box
- Blank Highcharts div fixed by a reboot?
- Highcharts: overlapped columns in exported chart
- Highcharts async tooltip is drawn on top of point
- Highcharts stock chart X axis date issue
- Highcharts area-spline fill gradient possibly undefined error
- How to make a Highcharts semi-circle donut chart using Hightchart-ng
- highcharts-ng addpoint each second
- Highcharts: Disabling/Enabling enableMouseTracking after initial render
- Ploting pie chart in django by highcharts
- Creating negative stacking bar chart with Highcharter(Likert chart)
- HIghcharts: Hide particular Bar in Bar chart
- Axis with array values, highcharts
- Highstock - Set extremes beyond the data range
- Highcharts : Change spline chart color dynamically
- Focus function on highcharts not working in mozilla
- Removing "Series" label on highcahrt-columnrange chart
- How to solve the wrong categories for xAxis in highcharts?
- Visual difference between different charts
- Highcharts and jquery-simple-slider seems to be not working together