Skip to content

Instantly share code, notes, and snippets.

@AlexanderKozhevin
Created May 7, 2017 08:53
Show Gist options
  • Save AlexanderKozhevin/a7477217d5128dd196a89b8d34f58b93 to your computer and use it in GitHub Desktop.
Save AlexanderKozhevin/a7477217d5128dd196a89b8d34f58b93 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;
}
}
}]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment