You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've followed the tutorial as closely as possible, however, the Sparkline still won't show. I've logged the data, its clearly being passed into the Sparkline component, but the chart just won't show. Any ideas?
My SparkLine.js file currently looks like this (Without console logs)
Hi there, I encountered the same issue. Turns out in the dummy dataset the SparklineAreaData has column labels 'x' and 'yval' instead of 'y'. In the SparkLine.jsx replace it with
I've followed the tutorial as closely as possible, however, the Sparkline still won't show. I've logged the data, its clearly being passed into the Sparkline component, but the chart just won't show. Any ideas?
My SparkLine.js file currently looks like this (Without console logs)
and my Ecommerce.jsx currently looks like this:
`import React from 'react'
import { BsCurrencyDollar } from 'react-icons/bs';
import {GoDotFill} from 'react-icons/go';
import {Stacked, Pie, Button, SparkLine} from '../components';
import {earningData, SparklineAreaData, ecomPieChartData} from '../data/dummy';
import { useStateContext } from '../contexts/ContextProvider';
const Ecommerce = () => {
return (
Earnings
$70,899.67
)
}
export default Ecommerce`
The text was updated successfully, but these errors were encountered: