Skip to content

Commit cc5d7fd

Browse files
committed
Hide default datalabel
1 parent bd3f0fa commit cc5d7fd

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313

1414
- doc properties
1515
- color
16-
- tooltip (as r`` ?).
16+
- tooltip => fct
17+
=> "js:"
18+
=> "str:"
19+
=> `` => () =>
1720

1821
- doc curves
1922

@@ -33,22 +36,29 @@
3336

3437
### Bugs
3538

36-
- default datalabel
37-
3839
### Features
3940

41+
- hide -> hidden
42+
43+
- show generated HTML => message to iframe => send outerHTML (+toggle contenteditable)
4044
- show example in doc (iframe to x?example="x" ?)
4145

4246
- share components (clone)
4347
- move components (remove and add)
4448

45-
- if color starts with -- => use css prop computed value ? (requires to manually update)
49+
- charts.js raw options override ?
50+
51+
- default color/tooltip/datalabel at graph level
52+
53+
- if color starts with -- => use css prop computed value ? (requires to manually update ?) => use signal ?
54+
- dark mode => invert (do it yourself?)
4655

4756
### Refactors
4857

58+
- LISS : replace attrs by signals ? (and raw_attrs for validation ?).
4959
- refactor internals
5060
- use signal/computedSignal (lazy eval)/effect
51-
-> override computation in children classes ???
61+
-> const computedSignal => computation use method that can be redefined.
5262

5363
### TS type errors
5464

dist/dev/index.js

Lines changed: 4 additions & 2 deletions
Large diffs are not rendered by default.

doc/fr/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ document.body.append(graph.host);
7878
</tfoot>
7979
</table>
8080

81-
-> types de datasets
81+
-> types de datasets + leurs attributs
8282

83-
-> les autres composants
83+
-> les autres composants
84+
85+
-> plus de JS API.

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ export default class ChartHTML extends LISS({css: CSS, attrs: ["measure-render-t
156156
responsive: true,
157157
maintainAspectRatio: false,
158158
scales: {},
159-
plugins: {},
159+
plugins: {
160+
datalabels: false
161+
},
160162

161163

162164
/*

0 commit comments

Comments
 (0)