ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  [MFC]resetting scale after a draw.
Posted by Kaiden on Dec-06-2013 18:10
Attachments:
Hi Peter,
Thanks for the previous comments. Great support!! :)
Could you take a look at the attached picture first?

open a file
1. draw a chart with Upper limit 800.
=>drawn properly


then, open a different file with different datas
2. draw a chart with Upper limit 1300.
=> the graph only shows up to previous scale (800)
*the proper graph should look like the pic 3(last picture)


could you help me??
1.png

  Re: [MFC]resetting scale after a draw.
Posted by Kaiden on Dec-09-2013 08:34
Hi Peter,
You told me how to reset the scales before,
i tried it and it still didn't work. that's why I asked,
but as I checked again, i set the parameter wrong so that it wouldn't go into the reset
fuction. now it works! thanks!! :)

-Kaiden-
<this worked fine>
//reset the view port to 100% (maximum zoom out)
m_chartView.setViewPortLeft(0);
m_chartView.setViewPortWidth(1);
m_chartView.setViewPortTop(0);
m_chartView.setViewPortHeight(1);

//reset the axis scale so the axis will be auto-scaled again
m_chartView.setFullRange("x", 0, 0);
m_chartView.setFullRange("y", 0, 0);