Last active
December 22, 2015 07:19
-
-
Save mly520/6437541 to your computer and use it in GitHub Desktop.
jquery sparkline pie sparkline
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
$(".sparkline.pie_week").sparkline([1, 1, 2], { | |
type: 'pie', | |
width: '400', | |
height: '400', | |
enableTagOptions: true, | |
tooltipFormat: '<span style="color: {{color}}">●</span> {{offset:names}} ({{percent.1}}%)', | |
tooltipValueLookups: { | |
names: { | |
0: 'one', | |
1: 'two', | |
2: 'three' | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment