score:5
Accepted answer
Seems to me you need to convert them to numbers first because input elems have values as strings:
g311 = +$("#g311").val();
g312 = +$("#g312").val();
g321 = +$("#g321").val();
g322 = +$("#g322").val();
and you need to declare these above the chart.
prefixing +
converts a string to number.
Source: stackoverflow.com
Related Query
- javascript variable not works in Highchart
- Javascript variable with Comma separated values not working in HighChart
- Code works on fiddle but not when I do /show
- JavaScript code inside TypeScript file .ts not working
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- Highchart is not showing in heroku, but works in local environment
- Options is not defined : Highchart error, Javascript
- Highcharts not working when pass the javascript variable as hightcharts series data
- Highcharts data from a variable is not working but from works fine from an array
- Setting additional data to Highchart series via <%= #{} %> works for integers but not Strings
- Highchart not able to use javascript variables(arrays) in series data
- Simple Highchart works as seperate .js file, but not in view
- x-axis, y-axis lines does not appear, when I include 3D chart library of HighChart in my code
- Highchart Combination Chart Area Range not displaying on chart but line chart works
- Javascript variable not working inside of highcharts
- Highchart does not render on webpage, Javascript
- Javascript Code not running in Wordpress Pages
- Decimals on yAxis are not being displayed, even if that same code works on highcharts jsfiddle
- why my highchart code is not working?
- Highchart is not working with javascript
- Use django variable (array of elements from sqlite3 database) inside javascript embedded code
- Array not in correct format in Javascript for use by HighChart
- Highchart map does not support IRS country code
- Highchart how to use custom javascript variable in highchart?
- Highchart javascript chart example not working
- Highcharts code with same set of code/data works in PHP but does not work in JSfiddle
- Resolve Conflict When Using Highchart and Highmap together (TypeError: ma is not a function)
- Highchart series update in javascript
- How to create a new Highstock chart with new Highchart and not jquery?
- Optimize JavaScript DrillDown code
More Query from same tag
- draw pie chart from arrays in highcharts
- Highcharts Local CSV Issues
- Set background color for only one pane in multi-pane Highstock chart
- Customize legend pie highchart into tag div
- iterate JSON response with jQuery for Highcharts
- Display space in chart in case of null value present in object in high chart stacked bar chart
- Highcharts two colors for fill of area chart
- Highcharter deprecated function's output is different than suggested
- HighCharts: drawing graph paper for ECG on Android
- Highcharts + R: Show tooltip values in million/billion etc. automatically
- Highcharts - update column graph with setData() not working
- How can I display the current value from a chart?
- Highcharts change label text for a single series
- Customize Highcharts xaxis label
- How to place labels on opposite Y axis in Highchart without a second series
- SVG javascript chart scraping
- Gauge graph with gradient green-yellow-red
- Populate JSON object to highchart bar chart
- Plotting XML/CSV Data in ASP.NET Charts (in VS2008 using VB code)
- How to fill area between two serieses in Hightcharts?
- Dynamically changing subtitles at various drilldowns in treemap in highcharts?
- colour range in javascript
- HighCharts: Increase width and padding of stacked bar graph
- highstock with json data
- GWT: HighChart error '$wnd.Highcharts' is null or not an object
- How to make a HighCharts drilldown column/bar chart that does not hide the non-drilldown categories
- Remove shadow/background glow on highcharts data label?
- Show how many elements every X time with HighCharts
- Equivalent of highcharts map with {highcharter}
- Pass 3 values in highcharts series