i have implemented graphs , drawn series using following code
dotnet.highcharts.highcharts chart=new highcharts.highcharts("chart"); chart.setseries(new[] {new series{name="one",data =new data(new object[,]{{0,0},{10,0.6},{20,0.5}})}}); chart.setseries(new[] {new series{name="two",data =new data(new object[,]{{0,0},{12,0.8},{29,0.35}})}});
now @ run time want add points when button clicked , series name choosen dropdown , values of x , y axis given in textboxes. can'nt figure out how add points when addpoint button clicked user.
are in mvc? if why not add bool parameter actionresult method , on button click whether actionlink etc pass value true action, conditional logic whether or not load empty array of series data or load 1 working?
public actionresult myview(bool loaddata) { if(loaddata) { //load data } else { // load blank data } }
maybe not elegant must admit :)
Comments
Post a Comment