@qkix/strapi-plugin-chartkit 0.2.0 → 0.3.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/README.md +18 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -167,6 +167,21 @@ SSR chart renderer. The obvious candidate, ECharts in SSR mode, writes its
|
|
|
167
167
|
palette into the markup as literal hex values - which makes class-based dark
|
|
168
168
|
mode impossible without post-processing the output.
|
|
169
169
|
|
|
170
|
+
### When one chart needs to say something else
|
|
171
|
+
|
|
172
|
+
Under **Colors** in the editor there is a swatch per series - per slice, on a pie
|
|
173
|
+
or donut. Leave one alone and it keeps following your stylesheet; set one and
|
|
174
|
+
that series overrules it, which is what picking out a single line or reddening
|
|
175
|
+
the quarter that went wrong requires.
|
|
176
|
+
|
|
177
|
+
Only the entries you set are stored, so highlighting one series does not freeze
|
|
178
|
+
the colors of the others against your next restyle. The cross beside a swatch
|
|
179
|
+
hands that series back to the site.
|
|
180
|
+
|
|
181
|
+
A color set here beats the CSS on purpose. The stylesheet is the house style; a
|
|
182
|
+
chart that names a color is overruling it for a reason, and a house style that
|
|
183
|
+
could silently repaint it would be no override at all.
|
|
184
|
+
|
|
170
185
|
## Also a block, if you use Better Blocks
|
|
171
186
|
|
|
172
187
|
<img src="https://raw.githubusercontent.com/qkix/strapi-plugins/main/packages/strapi-plugin-chartkit/docs/block.png" alt="A chart block inside a Better Blocks rich-text document" width="700" />
|
|
@@ -221,9 +236,9 @@ script, or a field that used to be a different type - it says so and goes
|
|
|
221
236
|
|
|
222
237
|
## Not there yet
|
|
223
238
|
|
|
224
|
-
Being honest about the edges: no tooltips or other interactivity
|
|
225
|
-
|
|
226
|
-
|
|
239
|
+
Being honest about the edges: no tooltips or other interactivity. Data is stored
|
|
240
|
+
with the chart rather than queried from a collection, so a chart of something
|
|
241
|
+
that changes is a chart somebody has to remember to update.
|
|
227
242
|
|
|
228
243
|
Issues and ideas welcome at
|
|
229
244
|
[qkix/strapi-plugins](https://github.com/qkix/strapi-plugins/issues).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qkix/strapi-plugin-chartkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Charts for Strapi v5, rendered as server-side SVG with no client-side JavaScript",
|
|
5
5
|
"strapi": {
|
|
6
6
|
"kind": "plugin",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"dist"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@qkix/chartkit-core": "^0.
|
|
47
|
-
"@qkix/chartkit-editor": "^0.
|
|
46
|
+
"@qkix/chartkit-core": "^0.4.0",
|
|
47
|
+
"@qkix/chartkit-editor": "^0.3.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@strapi/sdk-plugin": "^5.3.2",
|