fix: Resolves incorrect search trend graph in Ideas section.

closes #219
This commit is contained in:
towfiqi
2024-11-08 13:06:53 +06:00
parent 4b8730e416
commit 7597210ca2
2 changed files with 5 additions and 4 deletions

View File

@@ -7,10 +7,11 @@ ChartJS.register(CategoryScale, LinearScale, PointElement, LineElement, Filler,
type ChartProps ={
labels: string[],
sreies: number[],
noMaxLimit?: boolean
noMaxLimit?: boolean,
reverse?: boolean
}
const ChartSlim = ({ labels, sreies, noMaxLimit = false }:ChartProps) => {
const ChartSlim = ({ labels, sreies, noMaxLimit = false, reverse = true }:ChartProps) => {
const options = {
responsive: true,
maintainAspectRatio: false,
@@ -18,7 +19,7 @@ const ChartSlim = ({ labels, sreies, noMaxLimit = false }:ChartProps) => {
scales: {
y: {
display: false,
reverse: true,
reverse,
min: 1,
max: noMaxLimit ? undefined : 100,
},