score:2
Accepted answer
According to HighChart API and HighStock API:
renderTo: String|Object
The HTML element where the chart will be rendered.
If it is a string, the element by that id is used.
The HTML element can also be passed by direct reference. Defaults to null.
First, Highchart requires passing "id"
of div element. So, I doubt how passing class name works with first example you have mentioned.
Can you please share from where did you get the former HighChart
example ?
Second, Do you have a div containing id="graphcontainer"
and included Highstock
like
<script src="http://code.highcharts.com/stock/highstock.js"></script>
Source: stackoverflow.com
Related Query
- Highcharts shown in multiple divs with the same name
- Why does highcharts sankey chart sometimes combine multiple nodes with same node name but different Id into one and hide the lines?
- Highcharts - multiple plot with the same x scale
- Highcharts show the same yAxis start and end value with multiple data series
- Multiple pie-charts in the same chart with HighCharts
- Rendering Highcharts Chart in Multiple divs with same ID
- Multiple date array with same value by name on Highcharts
- Drilldown on multiple Highcharts with the same data
- Highcharts column + line combination chart with multiple series. Issue aligning line over the column
- Setting highcharts datalabels backgroundColor with the same color of its serie
- how to display 2 same highcharts without duplicate the code
- How to merge two Highcharts container with the same legend-item
- Display multiple points with exact same value in scatter HighCharts
- How to use Highcharts React to create chart with multiple lines for same XAxis?
- how to plot multiple time series in the same graph with customized x axis
- Highcharts multiple x axis and yaxis. The width of the 1st x-axis is not in sync with browser resize
- Changing the name for 'categories' of x axis while implementing crossfilter with highcharts
- Highcharts (Gauge) and Highstock on the same page with Meteor
- Highcharts single horizontal stacked bar chart with data names (labels) and %-ages always shown and data numbers and series name shown on mousehover
- My Highcharts graph with multiple axis ignores the max value I set for the first yaxis
- What's the code in Highcharts such that the bars (columns) in the same group use the same color?
- Highcharts : using same div to load a chart multiple times with different series data
- How to have multiple highcharts with different series data in vuejs without repeating code
- Multiple charts with same data not loading in same page: Highcharts
- Conflict with GSAP and Highcharts on the same page
- show two different series with different start intervals with the same xAxis highcharts
- Create Histogram with bellcurbe with in the same chart Highcharts
- Highcharts column how to move series name to the title position with bigger text size
- Highcharts: Is it possible to display series with the same name in different columns?
- Draw sankey when multiple entries have the same name
More Query from same tag
- highcharts how to override reset zoom button event
- Highcharts stacked column: show total when a stack is hidden
- Highcharts - change default opacity for series, without using RGBA?
- highstock grouping without zoom
- How to add space between series in stacked columns in HighChart?
- How does HttpContext.Current.Response.Binarywrite work?
- JavaScript in laravel-dompdf
- spline is not plotting after drilldown - HighCharts
- Drilldown in two steps, multiple choice in Highcharts
- Manual series names in highcharter
- Exporting Chart Throws RangeError: Maximum Call Stack Size Exceeded in highcharts-more.js
- Passing Django data to Highcharts via JSON
- highcharts check if a piechart section is selected
- Change chart property with onClick event
- How to add new points to highcharts after plotting the first 'n' points?
- how to add custom class name to tick positioner in Highcharts using javascript
- Highcharts datalabel 'callout' shape not working for donut chart
- Grouped Scatter or Bars Chart
- Highcharts: Displaying Linechart with missing datapoints
- Turning off point markers does not appear to work for Highcharts-ng
- HightChart Error 13 with angular js, function and controller scope
- Laravel 8 Inertia HighCharts not being imported in the app.js
- How to connect/sync xAxis crosshairs between multiple HighStocks charts
- Highcharts reset y Axis
- Getting Trailing Garbage error when loading maps from Highcharter in R
- why my label formatter is not working as expected in highcharts
- External legend in Highcharts
- Dot Net Highcharts Series Color
- Highcharts month xAxis has uneven space after February column
- Highstocks tooltip doesnt work when chart is small?