@operato/chart 8.0.0-alpha.8 → 8.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +196 -0
- package/dist/src/editors/configurer.d.ts +2 -2
- package/dist/src/editors/ox-input-chart-hbar.js +6 -1
- package/dist/src/editors/ox-input-chart-hbar.js.map +1 -1
- package/dist/src/editors/ox-input-chart-mixed.js +6 -1
- package/dist/src/editors/ox-input-chart-mixed.js.map +1 -1
- package/dist/src/editors/ox-input-chart-radar.js +6 -1
- package/dist/src/editors/ox-input-chart-radar.js.map +1 -1
- package/dist/src/editors/ox-input-chart-timeseries.js +7 -1
- package/dist/src/editors/ox-input-chart-timeseries.js.map +1 -1
- package/dist/src/editors/templates/annotations.d.ts +1 -0
- package/dist/src/editors/templates/annotations.js +5 -0
- package/dist/src/editors/templates/annotations.js.map +1 -1
- package/dist/src/editors/templates/display-value.js +7 -6
- package/dist/src/editors/templates/display-value.js.map +1 -1
- package/dist/src/editors/templates/series.d.ts +1 -0
- package/dist/src/editors/templates/series.js +5 -0
- package/dist/src/editors/templates/series.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -14
- package/src/editors/ox-input-chart-hbar.ts +6 -1
- package/src/editors/ox-input-chart-mixed.ts +6 -1
- package/src/editors/ox-input-chart-radar.ts +6 -1
- package/src/editors/ox-input-chart-timeseries.ts +7 -1
- package/src/editors/templates/annotations.ts +8 -0
- package/src/editors/templates/display-value.ts +7 -6
- package/src/editors/templates/series.ts +8 -0
- package/src/types.d.ts +1 -1
- package/assets/images/icon-editor-gradient-direction.png +0 -0
- package/assets/images/icon-properties-label.png +0 -0
- package/assets/images/icon-properties-line-type.png +0 -0
- package/assets/images/icon-properties-table.png +0 -0
|
@@ -13,6 +13,8 @@ export class DisplayValue extends LitElement {
|
|
|
13
13
|
|
|
14
14
|
render() {
|
|
15
15
|
const configurer = this.configurer
|
|
16
|
+
const displayValue = configurer.series.displayValue
|
|
17
|
+
configurer.series.displayValue = displayValue === true ? 'T' : displayValue === false ? 'F' : displayValue
|
|
16
18
|
|
|
17
19
|
return html`
|
|
18
20
|
<div id="display-value-container">
|
|
@@ -49,13 +51,12 @@ export class DisplayValue extends LitElement {
|
|
|
49
51
|
.value=${configurer.series.valueSuffix || ''}
|
|
50
52
|
/>
|
|
51
53
|
|
|
52
|
-
<input
|
|
53
|
-
id="display-value"
|
|
54
|
-
type="checkbox"
|
|
55
|
-
value-key="series.displayValue"
|
|
56
|
-
?checked=${!!configurer.series.displayValue}
|
|
57
|
-
/>
|
|
58
54
|
<label for="display-value"> <ox-i18n msgid="label.value-display">Value Display</ox-i18n> </label>
|
|
55
|
+
<select id="display-value" value-key="series.displayValue" .value=${configurer.series.displayValue || 'F'}>
|
|
56
|
+
<option value="T">Show</option>
|
|
57
|
+
<option value="F">Hide</option>
|
|
58
|
+
<option value="auto">Hide to Overlap</option>
|
|
59
|
+
</select>
|
|
59
60
|
|
|
60
61
|
${configurer.series.displayValue
|
|
61
62
|
? html`
|
|
@@ -28,6 +28,10 @@ export class MultipleSeriesTemplate extends LitElement {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
get value() {
|
|
32
|
+
return this.configurer.datasets
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
render() {
|
|
32
36
|
return keyed(
|
|
33
37
|
this.configurer.currentSeriesIndex,
|
|
@@ -221,6 +225,8 @@ export class MultipleSeriesTemplate extends LitElement {
|
|
|
221
225
|
|
|
222
226
|
private _removeSeries(index: number) {
|
|
223
227
|
this.configurer.removeSeries(index)
|
|
228
|
+
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))
|
|
229
|
+
|
|
224
230
|
this.requestUpdate()
|
|
225
231
|
}
|
|
226
232
|
|
|
@@ -243,6 +249,8 @@ export class MultipleSeriesTemplate extends LitElement {
|
|
|
243
249
|
})
|
|
244
250
|
|
|
245
251
|
this.configurer.addSeries(seriesModel)
|
|
252
|
+
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))
|
|
253
|
+
|
|
246
254
|
this.requestUpdate()
|
|
247
255
|
}
|
|
248
256
|
|
package/src/types.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ declare namespace OperatoChart {
|
|
|
50
50
|
valuePrefix?: string
|
|
51
51
|
valueSuffix?: string
|
|
52
52
|
valueFormat?: string
|
|
53
|
-
displayValue?: boolean
|
|
53
|
+
displayValue?: boolean | 'T' | 'F' | 'auto'
|
|
54
54
|
dataLabelAnchor?: string
|
|
55
55
|
dataLabelOffset?: number
|
|
56
56
|
dataLabelRotation?: number
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|