Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Im implementing bar charts using highcharts in asp.net c# application
as of now I have just hardcoded the values for both x and y axis but I need to pass the data dynamically could anyone please help how to achieve if you can please share some useful links that would guide me.

What I have tried:

var chart = Highcharts.chart('container', {

xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},

series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});

this is the example I used to hardcode the values.
Posted
Updated 10-Feb-17 0:49am
Comments
Karthik_Mahalingam 10-Feb-17 3:43am    
ajax call or button click server event or how ?
provide more info

1 solution

 
Share this answer
 
Comments
Rebecca.12 16-Feb-17 0:36am    
Thanks for the article. I did solved this issue as I was using bar chart it was quite different created separate methods for getting Xand Y axis values populated the data
Karthik_Mahalingam 16-Feb-17 1:30am    
hmm, simplify it based on your need.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900