Sets the start of the X and Y axis in the X-Y charts to 0.
This commit is contained in:
parent
bb2945ba81
commit
a3975c9267
@ -98,6 +98,8 @@ Sub subAddChart (oSheet As Object, oDataXRange As Object, oDataYRange As Object)
|
||||
oDiagram.getXAxisTitle.setPropertyValue ("String", sTitle)
|
||||
sTitle = oDataYRange.getCellByPosition (0, 0).getString
|
||||
oDiagram.getYAxisTitle.setPropertyValue ("String", sTitle)
|
||||
oDiagram.getXAxis.setPropertyValue ("Min", 0)
|
||||
oDiagram.getYAxis.setPropertyValue ("Min", 0)
|
||||
oChartDoc.setDiagram (oDiagram)
|
||||
|
||||
oProvider = oChartDoc.getDataProvider
|
||||
|
@ -98,6 +98,8 @@ Sub subAddChart (oSheet As Object, oDataXRange As Object, oDataYRange As Object)
|
||||
oDiagram.getXAxisTitle.setPropertyValue ("String", sTitle)
|
||||
sTitle = oDataYRange.getCellByPosition (0, 0).getString
|
||||
oDiagram.getYAxisTitle.setPropertyValue ("String", sTitle)
|
||||
oDiagram.getXAxis.setPropertyValue ("Min", 0)
|
||||
oDiagram.getYAxis.setPropertyValue ("Min", 0)
|
||||
oChartDoc.setDiagram (oDiagram)
|
||||
|
||||
oProvider = oChartDoc.getDataProvider
|
||||
|
Loading…
Reference in New Issue
Block a user