score:0
There is no method for doing this in the API. You could remove the series and add it again with another name, but that will make the animations run a second time and I think it will be colored with a new color as well.
score:-1
It is not required to Redraw chart again We can include it along with the series option in the Chart declaration as below:
var chart = new Highcharts.Chart({
chart: {
renderTo: 'high_container'
},title: {
text: 'IO Signal Data'
},subtitle: {
text: 'Source: GPS Modem'
},
yAxis: {
title: {
text: 'Value'
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle'
},
xAxis: {
type: 'datetime',
labels: {
enabled: true,
formatter: function () { return ddd[this.value][0]; }, //<=== the value to plot chart
}
},
series: [{
data: ddd,
name: SeriesName
}]
});
score:-1
You can use the following to change the series name:
$(chart.series[0].legendItem.element).children('tspan').text('newLabelName');
score:8
This seems to work :
chart.series[1].name="Renamed";
chart.redraw();
score:53
actually, there's a way now. In highchars 3.0 series added a new api, called update:
chart.series[0].update({name:"name u want to change"}, false);
chart.redraw();
it will not only update the series name below the chart, but the name in tooltip as well.
Cheers!
Source: stackoverflow.com
Related Query
- How to have multiple highcharts with different series data in vuejs without repeating code
- How can I hide series from a HighCharts legend?
- How can I hide a series from initially being displayed in Highcharts
- Hiding _groups_ of series in Highcharts and jQuery: how to get acceptable performance?
- Highcharts: How to rename series
- How can i hide all the Series in highcharts at a time
- How To Use Epoch Time With Highcharts Series Data?
- Highcharts - How to set custom colors for the series
- Highcharts - How to hide series name and Y value in tooltip
- Highcharts how to use JavaScript variable as series data source?
- How to get multiple data series into Highcharts
- How can I delete all of the points from a highcharts series
- How do I style the series labels on a Highcharts pie chart?
- How to remove the halo/glow around a marker upon hovering a series in Highcharts
- How to hide one series data info in tooltip using highcharts
- Highcharts 3.0, area chart with stacked and unstacked series - how to fix?
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- How to show 0 for incomplete Series in Highcharts
- Highcharts - how to update series in angular?
- How to color series legend in highcharts when colorbypoint is set to true
- How to remove a series in Highcharts by name
- How to add series after click event in HighCharts
- How to obtain HighCharts series "id" from "series" elements?
- How do i add mouse wheel code in Angular2 highcharts in typescript
- Highcharts - How to make a scatter plot with multiple series from HTML table
- Highcharts - how to create multiple y axis and group the data series
- how to display 2 same highcharts without duplicate the code
- how to use object as series for Highcharts
- How to construct HighCharts data series to match returned Json via ajax call
- How to edit tooltip in Highcharts C# code
More Query from same tag
- Include export csv in highcharter
- Highcharts navigation button and fullscreen button in bootstrap
- Highcharts multiple series force xAxis start point
- Highstock - irregular time interval
- Formatting Negative Numbers with Dollar Sign in Highcharts
- remove grid line on chart
- Passing an array from jsp to java script
- How to implement HighChart thousandsSep() for android(JAVA) on Hi-chart WordCloud
- How to show legend like Maps' in Line diagram in Highcharts?
- How to identify and format numbers with javascript
- Highstock xAxis scaling
- Highcharts displaying white space for bars when all values are zero
- Highcharts remove column defined by keys from export to CSV
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- x-axis tickInterval not working correctly in highstock chart
- Highcharts displays wrong month (next month) in datetime chart
- I am getting error on highcharts. like "ERROR TypeError: Cannot read property 'series' of undefined"
- Highcharts - is it possible to apply opacity for a specific zone?
- How can i access data from series in tooltip
- Add mouseover to outliers but not other points?
- highcharts build map with a set of values and display another set of values as labels
- Highcharts tickInterval every hour
- How to remove the value and number labels from Highcharts angular gauge
- HighCharts: set specific border width and border color dynamically for one column
- Restrict Highchart draggable points
- Missing points in HighCharts when applying event to exported button
- Highcharts - Exporting gantt charts not showing previous interaction by user
- Using HighCharts with LARAVEL
- HighChart bubble chart is not working
- Single-category column chart in Highcharts 3.0 beta