|
| [WD20] Charts - Getting the right Max Y Axis |
| Iniciado por guest, 17,jul. 2015 17:57 - No hay respuesta |
| |
| | | |
|
| |
| Publicado el 17,julio 2015 - 17:57 |
I have some charts that get refreshed every time I choose an item from a combobox.
When I load up Item1 the chart has a Max Y Axis of 1200 which fits the chart nicely. When I switch to Item2 the Max Y Axis goes to 3000 and fits the chart nicely. But when I go back to Item1 the Max Y Axis stays at 3000.
Is this a bug? Is there an easy way to fix this? A description setting I'm not seeing? It looks like ..YAxisMax is read only.
Relevant Code: grMask(CHART_NoName1,grMaskPercent, "99.99%") grLabel(CHART_NoName1,grShowLabel,True) grLabel(CHART_NoName1,grShowPercent,True) grTooltip(CHART_NoName1, grTooltipFormatPie, "[%VALUE%] items in " + "[%CATEGORY%]") CHART_NoName1[1]..SeriesColor = RGB(255,191,105) IF HExecuteQuery(QRY_Items,hQueryDefault,gnCurrentItemID) THEN FOR EACH QRY_Items grAddData(CHART_NoName1, 1, HRecNum(), QRY_Items.Count) grCategoryLabel(CHART_NoName1, HRecNum(), QRY_Items.Name) bChartHasData = True END IF bChartHasData = False THEN CHART_NoName1..Visible = False STC_ErrorMessage..Visible = True ELSE CHART_NoName1..Visible = True STC_ErrorMessage..Visible = False END grDraw(CHART_NoName1) ELSE |
| |
| |
| | | |
|
| | | | |
| | |
|