Dashboard - 다운로드수 업뎃
parent
8e22399ec4
commit
b84bb9a7a9
|
|
@ -203,7 +203,6 @@ function EgovAdminDashboard(props) {
|
||||||
// 총 다운로드 수를 받아온 후 state 업데이트
|
// 총 다운로드 수를 받아온 후 state 업데이트
|
||||||
const handleTotalDownloads = (sum) => {
|
const handleTotalDownloads = (sum) => {
|
||||||
setTotalDownloads(sum);
|
setTotalDownloads(sum);
|
||||||
console.log(sum);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@ const MonthlyBarChart = ({ onDataFetched }) => {
|
||||||
|
|
||||||
const [series, setSeries] = useState([
|
const [series, setSeries] = useState([
|
||||||
{
|
{
|
||||||
|
name: '다운로드수',
|
||||||
data: fileDailyList
|
data: fileDailyList
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
@ -100,11 +101,10 @@ const MonthlyBarChart = ({ onDataFetched }) => {
|
||||||
setOptions((prevState) => ({
|
setOptions((prevState) => ({
|
||||||
...prevState,
|
...prevState,
|
||||||
colors: [info],
|
colors: [info],
|
||||||
// labels: ['PC', 'Mobile', 'Mobile', 'Mobile', 'Mobile', 'Mobile', 'Mobile'],
|
|
||||||
xaxis: {
|
xaxis: {
|
||||||
labels: {
|
labels: {
|
||||||
style: {
|
style: {
|
||||||
colors: [primary, secondary, secondary, secondary, secondary, secondary, secondary]
|
colors: [secondary, secondary, secondary, secondary, secondary, secondary, secondary]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue