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
- HighChart is not working with multiple axis
- Highcharts Line Chart with multicolor area
- highcharts refresh CSV data is duplicating not refreshing
- How to parse a string in HighMaps (Map Bubble) alongside country code?
- Point marker disabled on normal state and enabled on select and hover states - it is not working for select state
- Can I Create a Single HighCharts Graph from Multiple Data Sources (Multiple GoogleSheets in this case)
- unable to fetch temperature data in highcharts
- Change the Size of the Export Button In Fusion Chart in PHP
- how to customize the tooltip in solid gauge in highchart
- highcharts how to make x and y axis starting on the same zero using categories on yAxis
- How do I show multiple line from dynamic data using javascript in highchart
- Highcharts not showing up
- Highcharts: Is it possible to plot sunburst chart with no data values?
- aligning datalabel to top of column highcharts
- Disabling HighCharts labels
- highcharts line chart passing in x values
- Highcharts skip columns when plotting
- How to change zone line color in highcharts
- Export json data with highcharts
- Highcharts - Getting a 3d effect with selected pie chart slices
- Graph in popup and separate Div in Leaflet
- How do I add images to my highcharts figure?
- highstock display tooltip wrong in iframe
- R Highcharter: Highlight/unhighlight a bar in a bar chart by clicking
- Highchart group by month from corresponding column data
- Highcharts stacked column how to use different label on each category
- Ordering the stacking in a highcharts bar chart in R
- show custom date on xAxis in highstock lineseries
- Highcharts line style change
- Highcharts not "graphing" in Firefox or Safari