LFFE-8 completing structure of chart basement
This commit is contained in:
@@ -5,16 +5,15 @@ const ApexChart = dynamic(() => import("react-apexcharts"), {ssr: false});
|
||||
|
||||
const Chart = ({type, series, specialOption}) => {
|
||||
const {languageApp, languageList} = useLanguage();
|
||||
const fa = languageList.find((item) => item.key == languageApp).chartLocalization
|
||||
const chartLang = languageList.find((item) => item.key == languageApp).chartLocalization
|
||||
const options = {
|
||||
chart: {
|
||||
locales: [fa],
|
||||
defaultLocale: 'fa',
|
||||
locales: [chartLang],
|
||||
defaultLocale: languageApp,
|
||||
fontFamily: languageList[0].fontFamily
|
||||
},
|
||||
...(specialOption ? specialOption : {})
|
||||
}
|
||||
console.log(options)
|
||||
return <ApexChart type={type} options={options} series={series} width="100%" height="100%"/>
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user