c# how to add second axis to chart? -
i have chart. have created list, , putting data in list. problem want display 2 axis, cant.(i have enabled 2 x axis), dont know how write code behind display second axis.
i want dispay reltime, , abstime too, primary , secondary axis dispays same data(reltime)
var series = chart1.series.add("ch0"); var series2 = chart1.series.add("ch1"); series.charttype = seriescharttype.line; series2.charttype = seriescharttype.line; long utolsoms=0; foreach (adatrecord item in tarolo) { utolsoms = item.reltime; series.points.addxy(item.reltime , item.ch0,);//+abstime (item.abstime) series2.points.addxy(item.reltime, item.ch1); } var chartarea = chart1.chartareas[series.chartarea]; console.write(utolsoms); chartarea.axisx.minimum = 0; chartarea.axisx.maximum = utolsoms+1; // auto scroll engedélyezése chartarea.cursorx.autoscroll = true; chartarea.axisx.scaleview.zoomable = true; int position = 0; int size = 30; chartarea.axisx.scaleview.zoom(position, size);
Comments
Post a Comment