|
multi axies like syncaxis |
Posted by Stefan on Sep-28-2018 16:28 |
|
Hallo
I tried to create a graph with 2 axis correlating to curve shown and a number of other axis in other Units correlating to the baseaxis like first graph.
Therefore I can use syncaxis. But then the ticks are also fixed to the ticks of the baseaxis. See second graph.
Then I tried to use
Call axis.setLinearScale(0#, C.xAxis.getMaxValue * Round(1 / (Me.Abq * 3600), 4))
to set the most Bottom axis. There are no ticks or labels at all shown now. Do i have to calculate the ticks and label on my own or is there way to let it be done?
|
Re: multi axies like syncaxis |
Posted by Peter Kwan on Sep-29-2018 03:16 |
|
Hi Stefan,
Try:
Call axis.setRounding(false, false)
With the above code, the axis will sync with other axis in value, but the ticks will not sync.
Regards
Peter Kwan |
Re: multi axies like syncaxis |
Posted by Stefan on Oct-01-2018 14:05 |
|
Thank You Peter,
I have add
Call axis.setrounding(False, False)
Call axis.settickdensity(40, 8)
Now it Looks preety nice.
Is there a way to get MinorTicks for the mainaxis without minorgrid?
|
Re: multi axies like syncaxis |
Posted by Peter Kwan on Oct-01-2018 23:00 |
|
Hi Stefan,
Yes, just set the minor tick of the main axis as usual, then set the minor grid color to cd.Transparent. It is like:
Call c.yAxis().setTickDensity(40, 8)
Call c.getPlotArea().getGridColor(&Hcccccc, &Hcccccc, cd.Transparent, cd.Transparent)
Hope this can help.
Regards
Peter Kwan |
Re: multi axies like syncaxis |
Posted by Stefan on Oct-04-2018 21:35 |
|
Thanks again,
now with
Call C.getPlotArea().setGridColor(&HCCCCCC, &HCCCCCC, cd.Transparent, cd.Transparent)
the result looks quite good.
|
|