mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 04:39:20 +00:00
fix: remove decimals from dashboard ticket graphic
This commit is contained in:
15
frontend/src/pages/Dashboard/Chart.js
vendored
15
frontend/src/pages/Dashboard/Chart.js
vendored
@@ -73,6 +73,7 @@ const Chart = () => {
|
|||||||
<ResponsiveContainer>
|
<ResponsiveContainer>
|
||||||
<BarChart
|
<BarChart
|
||||||
data={chartData}
|
data={chartData}
|
||||||
|
barSize={40}
|
||||||
width={730}
|
width={730}
|
||||||
height={250}
|
height={250}
|
||||||
margin={{
|
margin={{
|
||||||
@@ -84,7 +85,11 @@ const Chart = () => {
|
|||||||
>
|
>
|
||||||
<CartesianGrid strokeDasharray="3 3" />
|
<CartesianGrid strokeDasharray="3 3" />
|
||||||
<XAxis dataKey="time" stroke={theme.palette.text.secondary} />
|
<XAxis dataKey="time" stroke={theme.palette.text.secondary} />
|
||||||
<YAxis stroke={theme.palette.text.secondary}>
|
<YAxis
|
||||||
|
type="number"
|
||||||
|
allowDecimals={false}
|
||||||
|
stroke={theme.palette.text.secondary}
|
||||||
|
>
|
||||||
<Label
|
<Label
|
||||||
angle={270}
|
angle={270}
|
||||||
position="left"
|
position="left"
|
||||||
@@ -93,13 +98,7 @@ const Chart = () => {
|
|||||||
Tickets
|
Tickets
|
||||||
</Label>
|
</Label>
|
||||||
</YAxis>
|
</YAxis>
|
||||||
<Bar
|
<Bar dataKey="amount" fill={theme.palette.primary.main} />
|
||||||
// type="monotone"
|
|
||||||
dataKey="amount"
|
|
||||||
fill={theme.palette.primary.main}
|
|
||||||
// stroke={theme.palette.primary.main}
|
|
||||||
// dot={false}
|
|
||||||
/>
|
|
||||||
</BarChart>
|
</BarChart>
|
||||||
</ResponsiveContainer>
|
</ResponsiveContainer>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
|
|||||||
Reference in New Issue
Block a user