Difference between revisions of "Chart"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | ||
====Description==== | ====Description==== | ||
− | + | Chart control with support for [https://developers.google.com/chart/ Google Charts]. | |
====Properties==== | ====Properties==== | ||
Line 102: | Line 99: | ||
|valign="top"|Boolean | |valign="top"|Boolean | ||
|valign="top"|Enable or disable displaying a summary label next to the segment (True | False). | |valign="top"|Enable or disable displaying a summary label next to the segment (True | False). | ||
+ | |- | ||
+ | |valign="top"|ChartOptions | ||
+ | |valign="top"|RW | ||
+ | |valign="top"|Character | ||
+ | |valign="top"|The chart options. | ||
|- | |- | ||
|valign="top"|ChartShadow | |valign="top"|ChartShadow | ||
Line 136: | Line 138: | ||
|valign="top"|RW | |valign="top"|RW | ||
|valign="top"|Character | |valign="top"|Character | ||
− | |valign="top"|Known chart type: " | + | |valign="top"|Known chart type: "googlechart.pie" | "googlechart.map" | "googlechart.gauge" | "googlechart.donut" | "googlechart.bar" | "googlechart.column" | "horizontal bar" | "vertical bar" | "line" | "pie" | "gantt" | "bipolar" | "funnel" | "radar" | "rose" | "scatter" | "radial scatter" | "thermometer" | "waterfall" | "vertical progress bar" | "horizontal progress bar". |
|- | |- | ||
|valign="top"|ChartWidth | |valign="top"|ChartWidth | ||
Line 147: | Line 149: | ||
====Methods==== | ====Methods==== | ||
− | This class supports the [[:Category:Common_Methods|Common Methods]] | + | This class supports the [[:Category:Common_Methods|Common Methods]] plus the following: |
+ | |||
+ | {| class="wikitable" width="100%" | ||
+ | !width="20%"|Method | ||
+ | !Args | ||
+ | !width="50%"|Description | ||
+ | |- | ||
+ | |valign="top"|refresh | ||
+ | |valign="top"|None | ||
+ | |valign="top"|Refresh the chart. | ||
+ | |- | ||
+ | |} | ||
====Events==== | ====Events==== | ||
Line 155: | Line 168: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Framework Classes]] | [[Category:Framework Classes]] | ||
+ | [[Category:Lianja v7.0]] |
Latest revision as of 05:22, 24 January 2022
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Contents
Description
Chart control with support for Google Charts.
Properties
This class supports the Common Properties plus the following:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
ChartBackColor | RW | Character | The color of the chart canvas as an html-like color. |
ChartColors | RW | Character | A comma separated list of html-style colors (one for each segment). |
ChartData | RW | Character | The comma separated list of chart data. For grouped data, separate the groups with a | character. |
ChartDelegate | RW | Character | An optional delegate to be called when segments of the chart are selected. By default the 'tooltip' for the segment selected will be used as a search key in any child sections. |
ChartEffects | RW | Boolean | Enable or disable special effects for displaying the chart (True | False). |
ChartGradient | RW | Boolean | Enable or disable gradient colors (True | False). |
ChartGradientEnd | RW | Character | The end gradient color. |
ChartGradientStart | RW | Character | The start gradient color. |
ChartGutterBottom | RW | Numeric | The chart bottom gutter height in pixels. |
ChartGutterLeft | RW | Numeric | The chart left gutter width in pixels. |
ChartGutterRight | RW | Numeric | The chart right gutter width in pixels. |
ChartGutterTop | RW | Numeric | The chart top gutter height in pixels. |
ChartHeight | RW | Numeric | The chart height. |
ChartKeyLabels | RW | Character | The chart legend labels. |
ChartLabelForeColor | RW | Character | The chart label foreground color. |
ChartLabels | RW | Character | The chart labels. |
ChartLabelsAbove | RW | Boolean | Enable or disable displaying a summary label next to the segment (True | False). |
ChartOptions | RW | Character | The chart options. |
ChartShadow | RW | Boolean | Enable or disable 3D shadowing (True | False). |
ChartTable | RW | Character | The table for the chart. |
ChartTitle | RW | Character | The chart title. |
ChartTitleBackColor | RW | Character | The chart title background color. |
ChartTitleForeColor | RW | Character | The chart title foreground color. |
ChartTooltips | RW | Character | A comma separated list of tooltips that are passed to the delegate. |
ChartType | RW | Character | Known chart type: "googlechart.pie" | "googlechart.map" | "googlechart.gauge" | "googlechart.donut" | "googlechart.bar" | "googlechart.column" | "horizontal bar" | "vertical bar" | "line" | "pie" | "gantt" | "bipolar" | "funnel" | "radar" | "rose" | "scatter" | "radial scatter" | "thermometer" | "waterfall" | "vertical progress bar" | "horizontal progress bar". |
ChartWidth | RW | Numeric | The chart width. |
Methods
This class supports the Common Methods plus the following:
Method | Args | Description |
---|---|---|
refresh | None | Refresh the chart. |
Events
This class supports the Common Events