Skip to content

Instantly share code, notes, and snippets.

@AlexanderKozhevin
Created May 7, 2017 09:27
Show Gist options
  • Save AlexanderKozhevin/9c2e4caa62951acfaab1d5914c0730f6 to your computer and use it in GitHub Desktop.
Save AlexanderKozhevin/9c2e4caa62951acfaab1d5914c0730f6 to your computer and use it in GitHub Desktop.
{
type: 'Line',
data: Chartdata['Scatter'],
chartPadding: {
top: 30,
right: 30,
bottom: 0,
left: 15
},
options: {
showLine: false,
axisX: {
labelInterpolationFnc: function(value: number, index: number): string {
return index % 13 === 0 ? W{value} : null;
}
}
},
responsiveOptions: [
['screen and (min-width: 640px)', {
axisX: {
labelInterpolationFnc: function(value: number, index: number): string {
return index % 4 === 0 ? W{value} : null;
}
}
}]
]
}
<x-chartist
[data]="charts[3].data"
[type]="charts[3].type"
[options]="charts[3].options"
[responsiveOptions]="charts[3].respOpt"
[events]="charts[3].events">
</x-chartist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment