Skip to content

Instantly share code, notes, and snippets.

@AlexanderKozhevin
Created May 7, 2017 09:28
Show Gist options
  • Select an option

  • Save AlexanderKozhevin/5eb3e1e5c64f0f758b6bcd783ac3de97 to your computer and use it in GitHub Desktop.

Select an option

Save AlexanderKozhevin/5eb3e1e5c64f0f758b6bcd783ac3de97 to your computer and use it in GitHub Desktop.
{
type: 'Line',
data: Chartdata['LineWithArea'],
options: {
low: 0,
showArea: true,
height: '100%',
width: '100%',
lineSmooth: true,
onlyInteger: true,
fullWidth: true,
showPoint: false,
showLine: false,
plugins: [
],
chartPadding: {
top: 20,
right: 20,
bottom: 0,
left: 0
},
axisX: {
showLabel: true,
labelInterpolationFnc: function(value: number, index: number): number {
return value
}
},
axisY: {
showLabel: true
}
}
}
<x-chartist
[data]="charts[4].data"
[type]="charts[4].type"
[options]="charts[4].options"
[responsiveOptions]="charts[4].respOpt"
[events]="charts[4].events">
</x-chartist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment