Created
May 31, 2018 08:54
-
-
Save harconst/f938598b90fef53e2cccf4a88a5845e5 to your computer and use it in GitHub Desktop.
Configure the state of our application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state = { | |
lineChartData: { | |
labels: [], | |
datasets: [ | |
{ | |
type: "line", | |
label: "BTC-USD", | |
backgroundColor: "rgba(0, 0, 0, 0)", | |
borderColor: this.props.theme.palette.primary.main, | |
pointBackgroundColor: this.props.theme.palette.secondary.main, | |
pointBorderColor: this.props.theme.palette.secondary.main, | |
borderWidth: "2", | |
lineTension: 0.45, | |
data: [] | |
} | |
] | |
}, | |
lineChartOptions: { | |
responsive: true, | |
maintainAspectRatio: false, | |
tooltips: { | |
enabled: true | |
}, | |
scales: { | |
xAxes: [ | |
{ | |
ticks: { | |
autoSkip: true, | |
maxTicksLimit: 10 | |
} | |
} | |
] | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment