vb.net - Primary X axis in MS chart control wont display max value? (Resolved) -
i using ms chart control .net 4 framework in visual studio 2010 using windows forms. having issue scale of primary x axis on user input text box on button click. using both primary , secondary y axes work on user input.
i have checked settings each axis , have same settings. don't see why both y axes work on user input , x not. please help.
the following code using:
private sub button1_click(sender system.object, e system.eventargs) handles button1.click chart1.chartareas("area1").axisx.minimum = val(xprimemin.text) chart1.chartareas("area1").axisx.maximum = val(xprimemax.text) chart1.chartareas("area1").axisx.interval = val(xprimeinterval.text) chart1.chartareas("area1").axisx.labelstyle.interval = val(xprimeinterval.text) chart1.chartareas("area1").axisy.minimum = val(yprimemin.text) chart1.chartareas("area1").axisy.maximum = val(yprimemax.text) chart1.chartareas("area1").axisy.interval = val(yprimeinterval.text) chart1.chartareas("area1").axisy.labelstyle.interval = val(yprimeinterval.text) chart1.chartareas("area1").axisy2.minimum = val(ysecmin.text) chart1.chartareas("area1").axisy2.maximum = val(ysecmax.text) chart1.chartareas("area1").axisy2.interval = val(ysecinterval.text) chart1.chartareas("area1").axisy2.labelstyle.interval = val(ysecinterval.text) end sub
this screen shot of while on auto-scale:
this after set axes user input:
the solution worked me convert value taking array double value before adding series data point.
Comments
Post a Comment