diff --git a/components/common/ChartSlim.tsx b/components/common/ChartSlim.tsx index 8f126f1..a364337 100644 --- a/components/common/ChartSlim.tsx +++ b/components/common/ChartSlim.tsx @@ -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, }, diff --git a/components/ideas/KeywordIdea.tsx b/components/ideas/KeywordIdea.tsx index d2cb7f6..921fdc1 100644 --- a/components/ideas/KeywordIdea.tsx +++ b/components/ideas/KeywordIdea.tsx @@ -61,7 +61,7 @@ const KeywordIdea = (props: KeywordIdeaProps) => { onClick={() => showKeywordDetails()} className={`keyword_visits text-center hidden mt-4 mr-5 ml-5 cursor-pointer lg:flex-1 lg:m-0 lg:ml-10 max-w-[70px] lg:max-w-none lg:pr-5 lg:flex justify-center`}> - {chartData.labels.length > 0 && } + {chartData.labels.length > 0 && }