cx 25.9.0 → 25.10.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/dist/charts.js +25 -11
- package/dist/manifest.js +493 -493
- package/package.json +1 -1
- package/src/charts/axis/Axis.js +8 -0
package/package.json
CHANGED
package/src/charts/axis/Axis.js
CHANGED
|
@@ -220,6 +220,13 @@ export class Axis extends BoundedObject {
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
lines.forEach((p, i) => {
|
|
223
|
+
let data =
|
|
224
|
+
p.data != null
|
|
225
|
+
? Object.entries(p.data).reduce((acc, [key, val]) => {
|
|
226
|
+
acc[`data-${key}`] = val;
|
|
227
|
+
return acc;
|
|
228
|
+
}, {})
|
|
229
|
+
: null;
|
|
223
230
|
result.push(
|
|
224
231
|
<tspan
|
|
225
232
|
key={i}
|
|
@@ -228,6 +235,7 @@ export class Axis extends BoundedObject {
|
|
|
228
235
|
style={p.style}
|
|
229
236
|
className={p.className}
|
|
230
237
|
dx={dx}
|
|
238
|
+
{...data}
|
|
231
239
|
>
|
|
232
240
|
{p.text}
|
|
233
241
|
</tspan>,
|