score:2
Accepted answer
If chart1
is a global variable, you can do:
window['chart'+ID].series[0].update(...);
because global variables are automatically turned into properties of the window
object.
If it's not a global variable, you can't do this. It would be best to make chart
an array, rather than having chart1
, chart2
, etc. Then you could do:
chart[ID].series[0].update(...);
Source: stackoverflow.com
Related Query
- JS: how do I concatenate a variable into a API call with the dot syntax?
- how do i redraw only the Highchart with new API that depends on my Select Option Parameter?
- How to save an image of the chart on the server with highcharts?
- bootstrap data-toggle="tab" - how to make a tab active with a JS call
- How to export the whole page or html content with Highcharts not just the chart?
- How to show a column with the value Zero in Column chart in Highcharts?
- How is the api doc generated @ http://api.highcharts.com/
- How can I configure the legend with a specific height in highstock?
- How can i call a Rest API from a Vue component?
- How can I hide ALL series with the same ID with a button on highcharts? (line graph)
- How to achieve the best possible performance with mutable data and real-time charts in React?
- How to fill the Area between two series with multiples yAxis in HighChart?
- How can i get the json data with the specific between Year?
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- How to input plot data into highcharts with rails
- how to display the title in the middle of a donut chart with legend?(react-highcharts)
- How to grab correct highchart number in selectors using Selenium Webdriver with Python with several charts on the page?
- how to display 2 same highcharts without duplicate the code
- How to merge two Highcharts container with the same legend-item
- How do I change the style of the inner part enclosed by the lines(polar) chart created with highcharts?
- How to disable the display of the charts with highcharts?
- With HighCharts, how can I have the same tooltip formatter as my y axis
- How to put two charts on the same page with different modules?
- How to loop the data[] series with php and mysql
- How to call User Control from one of the Javascript function?
- How do I export the content of a page as either jpg or pdf with Highcharts and scrollable data?
- how to plot multiple time series in the same graph with customized x axis
- Vue js + HighChart - how can I make a synchronous axios call before the component get rendered?
- How can I make milestone lines with a GANTT chart using the highcharts library?
More Query from same tag
- highcharts / highstock column doesn't show all datalabels
- Using Highcharts (and modules) with lit-element
- Min/Max on x-axis not honored in Highstocks version of xrange chart
- change highstock flag to lines on xAxis
- Highcharts shown in multiple divs with the same name
- Highchart - always show crosshair
- Can Highcharts sort a legend list in a tooltip box?
- Highcharts and JSON problems
- Highcharts: Tooltip delay before display
- highcharter: BoxPlot Outliers not being on correct x-axis point
- How do I center a semi-circle doughnut chart?
- highstock ie8 error
- Keeping x axis at bottom of highchart
- Datalabels only showing the latest value plotted on the max value
- How to implement drilldown in asp.net mvc project?
- Highcharts Error #16: charts not showing on the same page
- Why do only 2 of my 3 Highcharts Pie Charts/Graphs are showing
- dynamic spline highchart from database
- Highchairs Tooltip not showing accurate date time
- onClick takes two clicks to populate results, HighCharts
- Highcharts timeline chart with multiple axes
- Drag legend out of Highchart
- Highchart Pie Chart click on hover
- high-charts datalabel position needs to change when value is too small
- Drawing Bubble Chart by using npm highcharts with error #17
- Updating Highstock chart points
- VueJS + HighChartJS : Synchronization of columns data with chart
- How to set variable as categories in Highcharts
- Changing Highcharts font size
- Highcharts columnrange custom legend