-
Notifications
You must be signed in to change notification settings - Fork 14
Chart
Chart
This class contains methods and properties related to the chart.
- AreaFilled
- AspectRatio
- BackgroundColor
- ChartType
- DisplayIn
- EdgeBrowserControl
- Horizontal
- SaveHtmlFileForDebugging
- ShowDownloadLink
- StackedChart
The following sections contain a detailed description of the methods and properties.
With this property you can specify, if the area under a line chart or in a radar chart is filled.
False
myChart.AreaFilled = True
ChartType, Horizontal, StackedChart
With this property you can control the aspect ratio of the chart.
2
myChart.AspectRatio = 2
--
With this property you can specify the background color of the chart. By default, the background is transparent.
You can specify the background color in four ways:
- rgba-code: rgba(77,22,66,0.5)
- rgb-code: rgb(128,255,73)
- hex-code: #FF77A1
- color name: green
{empty}, which leads to transparent
myChart.BackgroundColor = "rgb(255,123,147)"
--
Here you can specify the chart type. The following values are available:
- Line
- Bar
- Radar
- Doughnut
- Pie
- PolarArea
- Bubble
- Scatter
BarChart
myChart.ChartType = chChartType.Line
AreaFilled, Horizontal, StackedChart
Calling this method creates the chart and displays it in the control specified via "DisplayIn" property.
myChart.CreateChart
Here you can specify where the created chart is shown. The following values are available:
- chEdgeBrowserControl
- chSystemBrowser
chWebbrowserControl
myChart.DisplayIn = chDisplayIn.chWebbrowserControl
In this property you pass a reference to the edge browser control in which the chart is to be displayed.
By setting this property the value for the property DisplayIn is set to "chEdgeBrowserControl".
--
Set myChart.EdgeBrowserControl= Me.ctlEdgebrowser
Here you can specify if the created chart is shown horizontal (from left to right).
Horizontal charts are only available for the following chart types:
- line
- bar
False
myChart.Horizontal = True
ChartType, AreaFilled, StackedChart
Calling this method, you can initialize the chart with some optional parameters.
- TheControl :: Reference to the control where the chart should be shown
- ChartType :: Type of chart to draw
- DataSourceType :: Type of datasource
- DataSource :: Data source
- DataFieldNames :: List of fieldnames for the data
- LabelFieldName :: Name of the label field
myChart.Init(Me.ctlWebBrowser)
--
When set to true the html string is saved in a file for debugging.
Path: Current Project
Filename: BetterAccessChart_{WebBrowserControlName}.html
False
myPivot.SaveHtmlFileForDebugging = True
--
With this property you can specify, if a link is shown to download the actual state of the chart as a picture.
False
myChart.ShowDownloadLink = True
--
With this property you control whether the datasets are displayed as stacked.
Only available in the following chart types:
- Line
- Bar
- HorizontalBar
False
myChart.StackedChart = True