plt3DIPlot GetBarChartHandle
Gets a pointer to a bar chart curve.
Syntax
plt3DIPlot_handle GetBarChartHandleiBarChart index
Application
HyperWorks Tcl Query
Description
Gets a pointer to a bar chart curve.
Inputs
- iBarChart
- The name of the new handle.
- index
- The number of the bar chart.
Example
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
myProjectName GetPageHandle myPageName [myProjectName GetActivePage]
myPageName GetWindowHandle myWindowName [myPageName GetActiveWindow]
myWindowName GetClientHandle myPlotName
myPlotName SetAxesType chart
myPlotName AddCategory x "A"
myPlotName AddCategory x "B"
myPlotName AddCategory x "C"
myPlotName AddCategory y "Q1"
myPlotName AddCategory y "Q2"
myPlotName AddCategory y "Q3"
myPlotName AddCategory y "Q4"
myPlotName GetBarChartHandle myQ1Name [myPlotName AddBarChart]
myQ1Name GetDataSourceHandle myQ1Name.x x
myQ1Name GetDataSourceHandle myQ1Name.y y
myQ1Name GetDataSourceHandle myQ1Name.z z
myQ1Name.x SetType values
myQ1Name.y SetType values
myQ1Name.z SetType values
myQ1Name.x SetValues "0 1 2"
myQ1Name.y SetValues "0 1 2"
myQ1Name.z SetValues "1 3 6.6"
myQ1Name SetColor 22
myPlotName GetBarChartHandle myQ2Name [myPlotName AddBarChart]
myQ2Name GetDataSourceHandle myQ2Name.x x
myQ2Name GetDataSourceHandle myQ2Name.y y
myQ2Name GetDataSourceHandle myQ2Name.z z
myQ2Name.x SetType values
myQ2Name.y SetType values
myQ2Name.z SetType values
myQ2Name.x SetValues "0 1 2"
myQ2Name.y SetValues "0 1 2"
myQ2Name.z SetValues "1 14 16"
myQ2Name SetColor 18
myPlotName GetBarChartHandle myQ3Name [myPlotName AddBarChart]
myQ3Name GetDataSourceHandle myQ3Name.x x
myQ3Name GetDataSourceHandle myQ3Name.y y
myQ3Name GetDataSourceHandle myQ3Name.z z
myQ3Name.x SetType values
myQ3Name.y SetType values
myQ3Name.z SetType values
myQ3Name.x SetValues "0 1 2"
myQ3Name.y SetValues "0 1 2"
myQ3Name.z SetValues " 3 13.6 13.6"
myQ3Name SetColor 55
myPlotName GetBarChartHandle myQ4Name [myPlotName AddBarChart]
myQ4Name GetDataSourceHandle myQ4Name.x x
myQ4Name GetDataSourceHandle myQ4Name.y y
myQ4Name GetDataSourceHandle myQ4Name.z z
myQ4Name.x SetType values
myQ4Name.y SetType values
myQ4Name.z SetType values
myQ4Name.x SetValues "0 1 2"
myQ4Name.y SetValues "0 1 2"
myQ4Name.z SetValues " 2.5 10.5 22.5"
myQ4Name SetColor 46
myPlotName Recalculate
myPlotName Autoscale
myPlotName Draw
Errors
Success (0) or an error code.