mmo-chart
1 symbol · generated 30 Sep 2026
mmo-chart
mmo-chart.jhs:1Chart element to display a chart
- Extends
- CustomShadowElement
Index
| url | the url to get data from | |
| type | the type of chart to use (default bar) | |
| title | the title of the chart | |
| schema | the schema to use | |
| icon | the icon to display in chart title | |
| ViewDefault static readonly accessor | ||
| type accessor | Get the type of the chart | |
| config accessor | Get the config of the chart | |
| url accessor | Get the url of the chart | |
| collection accessor | Get the collection of the chart | |
| collections accessor | Get the collections of the chart | |
| schema accessor | Get the schema of the chart | |
| data readonly accessor | Get the data of the chart | |
| index accessor | Get the index of the chart | |
| diff accessor | Get the diff of the chart | |
| unit accessor | Get the unit of the chart | |
| icon accessor | Get the icon of the chart | |
| title accessor | Get the title of the chart | |
| constructor() | ||
| init() | ||
| updateTendency() | Update the tendency of the chart | |
| updateChart() | Update the chart | |
| update() | Update the component | |
| updateTheme(theme) | Update the theme of the chart | |
| downloadJSON() | Download the data of the chart as a JSON file | |
| configure() | Show a configuration in the app panel | |
| onCollectionChange() | Update the schema when the collection changes | |
| updateSchema() | Update the schema of the chart | |
| (default) | a caption shown under the plot, in place of the generated one | |
| .loading | hide toolbar while loading component |
Attributes5
url
mmo-chart.jhsthe url to get data from
url
type
mmo-chart.jhsthe type of chart to use (default bar)
type
title
mmo-chart.jhsthe title of the chart
title
schema
mmo-chart.jhsthe schema to use
schema
icon
mmo-chart.jhsthe icon to display in chart title
icon="chart-pie"
Properties13
ViewDefault
staticreadonlyaccessormmo-chart.jhs:100type
accessormmo-chart.jhs:156Get the type of the chart
- Type
string
config
accessormmo-chart.jhs:172Get the config of the chart
- Type
object
url
accessormmo-chart.jhs:192Get the url of the chart
- Type
string
collection
accessormmo-chart.jhs:227Get the collection of the chart
- Type
string
collections
accessormmo-chart.jhs:246Get the collections of the chart
- Type
object
schema
accessormmo-chart.jhs:262Get the schema of the chart
- Type
object
data
readonlyaccessormmo-chart.jhs:278Get the data of the chart
- Type
object
index
accessormmo-chart.jhs:298Get the index of the chart
- Type
number
diff
accessormmo-chart.jhs:316Get the diff of the chart
- Type
string
unit
accessormmo-chart.jhs:333Get the unit of the chart
- Type
string
icon
accessormmo-chart.jhs:350Get the icon of the chart
- Type
string
title
accessormmo-chart.jhs:366Get the title of the chart
- Type
string
Methods10
constructor()
mmo-chart.jhs:109init()
mmo-chart.jhs:139updateTendency()
mmo-chart.jhs:385Update the tendency of the chart
updateChart()
mmo-chart.jhs:441Update the chart
update()
mmo-chart.jhs:468Update the component
updateTheme(theme)
mmo-chart.jhs:477Update the theme of the chart
| theme | string | - The theme of the chart |
downloadJSON()
mmo-chart.jhs:491Download the data of the chart as a JSON file
configure()
mmo-chart.jhs:501Show a configuration in the app panel
| returns |
onCollectionChange()
mmo-chart.jhs:595Update the schema when the collection changes
updateSchema()
mmo-chart.jhs:606Update the schema of the chart
Slots1
(default)
mmo-chart.jhsa caption shown under the plot, in place of the generated one
<slot>
CSS hooks1
.loading
mmo-chart.jhshide toolbar while loading component
.loading