Skip to content

Commit

Permalink
Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas committed Apr 15, 2024
1 parent e3b1fad commit 61a65b6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/data/charts/tooltip/Formatting.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ export default function Formatting() {
<LineChart
{...lineChartsParams}
xAxis={[{ data: years, scaleType: 'time', valueFormatter: yearFormatter }]}
series={lineChartsParams.series.map((serie) => ({
...serie,
valueFormatter: currencyFormatter,
series={lineChartsParams.series.map((series) => ({
...series,
valueFormatter: (v) => (v === null ? '' : currencyFormatter(v)),
}))}
/>
);
Expand Down
6 changes: 3 additions & 3 deletions docs/data/charts/tooltip/Formatting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ export default function Formatting() {
<LineChart
{...lineChartsParams}
xAxis={[{ data: years, scaleType: 'time', valueFormatter: yearFormatter }]}
series={lineChartsParams.series.map((serie) => ({
...serie,
valueFormatter: currencyFormatter,
series={lineChartsParams.series.map((series) => ({
...series,
valueFormatter: (v) => (v === null ? '' : currencyFormatter(v)),
}))}
/>
);
Expand Down
6 changes: 3 additions & 3 deletions docs/data/charts/tooltip/Formatting.tsx.preview
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<LineChart
{...lineChartsParams}
xAxis={[{ data: years, scaleType: 'time', valueFormatter: yearFormatter }]}
series={lineChartsParams.series.map((serie) => ({
...serie,
valueFormatter: currencyFormatter,
series={lineChartsParams.series.map((series) => ({
...series,
valueFormatter: (v) => (v === null ? '' : currencyFormatter(v)),
}))}
/>

0 comments on commit 61a65b6

Please sign in to comment.