Skip to content

Instantly share code, notes, and snippets.

@johnoscott
Last active November 15, 2018 08:08
Show Gist options
  • Save johnoscott/ebed389183988c68a73ffbe37d4d9477 to your computer and use it in GitHub Desktop.
Save johnoscott/ebed389183988c68a73ffbe37d4d9477 to your computer and use it in GitHub Desktop.
Hide Sparkline end value

When using the sparkline chart in angular-nvds we might want to hide the end value when creating tiny sparlines

Answer to this question https://stackoverflow.com/questions/34864193/angular-nvd3-sparkline-and-trailing-currentvalue-number/53314759#53314759

just set the undocumented* option showLastValue

$scope.options = { chart: { type: 'sparklinePlus', height: 300, showLastValue: false, } };

Here is a working example : http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment