score:18
Accepted answer
yes you can. see their example here: http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/renderto-jquery/
basically you assign an jquery element to a variable:
renderto: $('.myclass')[0]
score:14
as ido already said, you can't have multiple ids, but you can have multiple classes.
i had to do the following:
var $containers = $('.container'),
chartconfig = {
chart: {
renderto: null,
defaultseriestype: 'column'
}
};
$containers.each(function(i, e){
chartconfig.chart.renderto = e;
new highcharts.chart(chartconfig);
});
also, you don't really have to assign the chart object to a variable - at least i didn't want to.
hope it helps somebody.
Source: stackoverflow.com
Related Query
- Rendering HighCharts to class instead of id?
- Use HTML class as Highcharts table data source
- Rendering Highcharts using Angular js Directives
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- Highcharts jQuery rendering problem - all browsers
- How do you increase the performance of highcharts chart creation and rendering
- How to update new plotline values instead of removing and adding new ones in highcharts
- Using a fill pattern instead of colour with HighCharts
- php: laravel slow view render time when rendering javascript for highcharts
- Highcharts - Draw Crosshairs / Tooltip on Mouse Position Instead of Snapping to Data Point
- Use CSS Class in HighCharts
- Labels are not rendering for plotLines highcharts
- Not rendering VU-meter Gauge chart using HighCharts in Durandal
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- HighCharts Rendering Issue In Chrome
- Can we change highcharts legend to work as radio button instead of checkbox style?
- Highcharts reflow does not work on class selector
- highcharts zero values results in graph half way instead at the bottom
- Symfony2 - Highcharts rendering a blank div
- Highcharts applying custom style to context button using css class
- Highcharts gauge not rendering text
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- rendering Highcharts datatimes on the x axis at regular intervals
- Highcharts - Global configuration with common code and unique data & Headings
- creating a bar chart using Highcharts with React - getting an error that rendering div isn't found
- Highcharts server side rendering draw a mysterious semi circle donut shape
- HighCharts - compare series with values instead of percentage
- AJAX displaying values from two different functions in a single Highcharts chart instead of two different ones
- Rails collecting and rendering JSON data in to a Highcharts graph
- Highcharts Isomorphic rendering / web-workers
More Query from same tag
- giving a javascript number fixed width after decimal while remaining a number
- Rxjs How to wait for all observables from dynamic components to complete in smart component
- Highstock with datetime and multiple columns
- POST svg output from HighCharts to an internal server
- Could not install package 'HighChart" in a .Net webform project
- highstock grouping without zoom
- Combination of Scatter HighChart with Polynomial Chart
- Highcharts dataLabels not showing in all levels of drilldown
- How Highstock determines date
- How do I reset Highcharts bar color back to it's original color?
- highcharts half pie container too big
- How to auto save highcharts as image in specific folder
- HighChart Bubble and Date / Tooltip
- Label Y-Axis stops in Highcharts solid gauges
- LINQ SQL Method not Filling Highcharts
- High-charts scroll bar not working
- How to position rangeSelector buttons to the right Highstock/Highcharts
- Highcharts error 15
- Can we get index from series data in highcharts
- Bar chart in High chart for indication of value with two colors in each bar where one color is always kept fixed
- Highcharts graph should start entirely to the left and end entirely to the right
- Highcharts add an image to that chart with an onClick event attached to it
- highcharts not sure how to load data from external json
- How to modify highcharts legend item click event?
- Highcharts Column Range - How to render series data stored in PHP variables?
- Highcharts custom SVG marker
- Dateformat not working for stacked column charts
- Highcharts Heatmap Edit Legend
- highcharts type bubble with static Y-axis list
- Highcharts - Even tick with uneven spacing