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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
import React, { Component } from 'react'
import Chart from 'react-apexcharts'
const day = [{
x: new Date('2021-11-01 00:00:00 '),
y: 5
},
{
x: new Date('2021-11-02 00:00:00 '),
y: 15
},
{
x: new Date('2021-11-03 00:00:00 '),
y: 10
},
{
x: new Date('2021-11-04 00:00:00 '),
y: 30
},
{
x: new Date('2021-11-05 00:00:00 '),
y: 45
},
{
x: new Date('2021-11-06 00:00:00 '),
y: 20
},
{
x: new Date('2021-11-07 00:00:00 '),
y: 12
},
];
const week = [{
x: Date.parse('2021-10-31 00:00:00'),
y: 15
},
{
x: Date.parse('2021-11-07 00:00:00 '),
y: 25
},
{
x: Date.parse('2021-11-14 00:00:00 '),
y: 5
},
{
x: Date.parse('2021-11-21 00:00:00 '),
y: 45
},
{
x: Date.parse('2021-11-28 00:00:00 '),
y: 30
},
];
const month = [{
x: Date.parse('2021-08-01 00:00:00 '),
y: 500
},
{
x: Date.parse('2021-09-01 00:00:00 '),
y: 700
},
{
x: Date.parse('2021-10-01 00:00:00 '),
y: 200
},
{
x: Date.parse('2021-11-01 00:00:00 '),
y: 1000
},
{
x: Date.parse('2021-12-01 00:00:00 '),
y: 600
},
];
class O1chart extends Component {
constructor(props) {
super(props);
}
export default O1chart
how do I travel to the data part so that I can toogle the data part from day to week
Beta Was this translation helpful? Give feedback.
All reactions