Skip to content

Commit

Permalink
Volume to ohcl
Browse files Browse the repository at this point in the history
  • Loading branch information
philipjames44 committed Jun 14, 2024
1 parent 8e998d6 commit fa91173
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/charts/ohlcChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,7 @@ const OHLCChart = ({ asset1Token, asset2Token }: OHLCChartProps) => {
axisLine: { onZero: false },
splitLine: { show: false },
splitNumber: 20,
axisLabel: {
formatter: function (value: string) {
return value.replace(/ /g, "\n"); // Replace space with a newline
},
},
axisLabel: { show: false },
min: "dataMin",
max: "dataMax",
},
Expand All @@ -206,7 +202,11 @@ const OHLCChart = ({ asset1Token, asset2Token }: OHLCChartProps) => {
axisLine: { onZero: false },
axisTick: { show: false },
splitLine: { show: false },
axisLabel: { show: false },
axisLabel: {
formatter: function (value: string) {
return value.replace(/ /g, "\n"); // Replace space with a newline
},
},
min: "dataMin",
max: "dataMax",
},
Expand Down Expand Up @@ -234,8 +234,8 @@ const OHLCChart = ({ asset1Token, asset2Token }: OHLCChartProps) => {
{
left: "10%",
right: "8%",
top: "76%",
height: "15%",
top: "74%",
height: "12%",
},
],
series: [
Expand Down

0 comments on commit fa91173

Please sign in to comment.