@app-studio/web 0.9.49 → 0.9.50

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.
@@ -285,6 +285,40 @@ export const ChartStatesDemo = () => {
285
285
  };
286
286
  ```
287
287
 
288
+ ### **Zero Values**
289
+
290
+ The Chart component handles cases where all values are zero by displaying the axes with a default scale, ensuring the chart structure remains visible.
291
+
292
+ ```tsx
293
+ import React from 'react';
294
+ import { Chart, CHART_COLORS, View } from '@app-studio/web';
295
+
296
+ export const ZeroValuesDemo = () => {
297
+ const data = {
298
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
299
+ series: [
300
+ {
301
+ name: 'Revenue',
302
+ data: [0, 0, 0, 0, 0, 0],
303
+ color: CHART_COLORS.blue,
304
+ },
305
+ ],
306
+ };
307
+
308
+ return (
309
+ <View height="300px" width="100%">
310
+ <Chart
311
+ type="bar"
312
+ data={data}
313
+ title="Zero Revenue Chart"
314
+ showGrid
315
+ animated
316
+ />
317
+ </View>
318
+ );
319
+ };
320
+ ```
321
+
288
322
  ### **Available Colors**
289
323
 
290
324
  The Chart component provides a set of predefined colors through `CHART_COLORS`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-studio/web",
3
- "version": "0.9.49",
3
+ "version": "0.9.50",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/components/index.d.ts",
6
6
  "files": [
@@ -112,7 +112,7 @@
112
112
  "@types/react-test-renderer": "^18.0.0",
113
113
  "@typescript-eslint/eslint-plugin": "^5.59.7",
114
114
  "@typescript-eslint/parser": "^5.59.7",
115
- "app-studio": "^0.6.34",
115
+ "app-studio": "^0.6.35",
116
116
  "async-mutex": "^0.5.0",
117
117
  "babel-jest": "^29.5.0",
118
118
  "babel-loader": "^9.1.2",