|
| Category Labels on Chart Reports |
| Iniciado por guest, 12,sep. 2015 03:24 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 12,septiembre 2015 - 03:24 |
Hi,
In WD20 I am trying to create a chart report. Everything is working fine except for the life of me I can not figure out how to get the category labels to display at bottom of report.
Here is my code.
nSeries is int nValue is currency HExecuteQuery(Query_DestinationByType,hQueryDefault,1) HReadFirst(Query_DestinationByType)
WHILE NOT HOut(Query_DestinationByType)
nSeries=nSeries+1
HExecuteQuery(Query_Booking_History_byDestination,hQueryDefault,Query_DestinationByType.DestinationID) HReadFirst(Query_Booking_History_byDestination) WHILE NOT HOut(Query_Booking_History_byDestination)
nValue=nValue+Query_Booking_History_byDestination.Total_Price
HReadNext(Query_Booking_History_byDestination)
END
grCategoryLabel(CHART_SalesByRegion,nSeries,Query_DestinationByType.Name)
grAddData(CHART_SalesByRegion,nSeries,1,nValue)
HReadNext(Query_DestinationByType) nValue=0 END
grDraw(CHART_SalesByRegion)
Any idea what I'm doing wrong? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 12,septiembre 2015 - 16:54 |
I was confusing "series" with "categories". Series are are subsets of categories. Once I changed
grAddData(CHART_SalesByRegion,nSeries,1,nValue)
to
grAddData(CHART_SalesByRegion,1,nValue)
Everything worked fine. |
| |
| |
| | | |
|
| | | | |
| | |
|