angular-nvd3 sparkline and trailing currentValue number
I'm just starting to get to know nvd3. I'm actually using angular-nvd3 to build a sparkline. What I'm not finding an option for is how to get rid of the trailing currentValue. I thought showValues might have been it, but I'm actually seeing no difference.
This plunker shows a sparkline with "23" at the end of it, indicating the last value. That's what I want to get rid of.
http://plnkr.co/edit/CcLayxryGZJGc5vBNpyB?p=preview
$scope.options =
chart:
type: 'sparklinePlus',
height: 300,
showValues: false
;
Any help?
angularjs d3.js nvd3.js
add a comment |
I'm just starting to get to know nvd3. I'm actually using angular-nvd3 to build a sparkline. What I'm not finding an option for is how to get rid of the trailing currentValue. I thought showValues might have been it, but I'm actually seeing no difference.
This plunker shows a sparkline with "23" at the end of it, indicating the last value. That's what I want to get rid of.
http://plnkr.co/edit/CcLayxryGZJGc5vBNpyB?p=preview
$scope.options =
chart:
type: 'sparklinePlus',
height: 300,
showValues: false
;
Any help?
angularjs d3.js nvd3.js
add a comment |
I'm just starting to get to know nvd3. I'm actually using angular-nvd3 to build a sparkline. What I'm not finding an option for is how to get rid of the trailing currentValue. I thought showValues might have been it, but I'm actually seeing no difference.
This plunker shows a sparkline with "23" at the end of it, indicating the last value. That's what I want to get rid of.
http://plnkr.co/edit/CcLayxryGZJGc5vBNpyB?p=preview
$scope.options =
chart:
type: 'sparklinePlus',
height: 300,
showValues: false
;
Any help?
angularjs d3.js nvd3.js
I'm just starting to get to know nvd3. I'm actually using angular-nvd3 to build a sparkline. What I'm not finding an option for is how to get rid of the trailing currentValue. I thought showValues might have been it, but I'm actually seeing no difference.
This plunker shows a sparkline with "23" at the end of it, indicating the last value. That's what I want to get rid of.
http://plnkr.co/edit/CcLayxryGZJGc5vBNpyB?p=preview
$scope.options =
chart:
type: 'sparklinePlus',
height: 300,
showValues: false
;
Any help?
angularjs d3.js nvd3.js
angularjs d3.js nvd3.js
asked Jan 18 '16 at 21:13
rspring1975rspring1975
7817
7817
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Add this to the style to hide the last value
Make the display of the group with text label none.
<style>
.nv-valueWrap display:none;
</style>
Working code here
Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.
– rspring1975
Jan 19 '16 at 16:29
I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril
– rspring1975
Jan 21 '16 at 17:32
add a comment |
just set the undocumented* option showLastValue
$scope.options =
chart:
type: 'sparklinePlus',
height: 300,
showLastValue: false,
;
* I found this in the "new" documentation for LineChart in the dependant library nvds http://nvd3-community.github.io/nvd3/examples/documentation.html
Here is a working example :
http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f34864193%2fangular-nvd3-sparkline-and-trailing-currentvalue-number%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Add this to the style to hide the last value
Make the display of the group with text label none.
<style>
.nv-valueWrap display:none;
</style>
Working code here
Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.
– rspring1975
Jan 19 '16 at 16:29
I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril
– rspring1975
Jan 21 '16 at 17:32
add a comment |
Add this to the style to hide the last value
Make the display of the group with text label none.
<style>
.nv-valueWrap display:none;
</style>
Working code here
Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.
– rspring1975
Jan 19 '16 at 16:29
I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril
– rspring1975
Jan 21 '16 at 17:32
add a comment |
Add this to the style to hide the last value
Make the display of the group with text label none.
<style>
.nv-valueWrap display:none;
</style>
Working code here
Add this to the style to hide the last value
Make the display of the group with text label none.
<style>
.nv-valueWrap display:none;
</style>
Working code here
answered Jan 19 '16 at 1:05
CyrilCyril
28.2k72944
28.2k72944
Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.
– rspring1975
Jan 19 '16 at 16:29
I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril
– rspring1975
Jan 21 '16 at 17:32
add a comment |
Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.
– rspring1975
Jan 19 '16 at 16:29
I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril
– rspring1975
Jan 21 '16 at 17:32
Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.
– rspring1975
Jan 19 '16 at 16:29
Thanks for the style options. However, while this does hide the number, it leaves white space where the number was.I should be clear, that I'm looking for a way to leave the number out completely so the sparkline fills the chart left to right.
– rspring1975
Jan 19 '16 at 16:29
I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril
– rspring1975
Jan 21 '16 at 17:32
I take that back. The chart seems to be rendering without the white space now. Thanks @Cyril
– rspring1975
Jan 21 '16 at 17:32
add a comment |
just set the undocumented* option showLastValue
$scope.options =
chart:
type: 'sparklinePlus',
height: 300,
showLastValue: false,
;
* I found this in the "new" documentation for LineChart in the dependant library nvds http://nvd3-community.github.io/nvd3/examples/documentation.html
Here is a working example :
http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview
add a comment |
just set the undocumented* option showLastValue
$scope.options =
chart:
type: 'sparklinePlus',
height: 300,
showLastValue: false,
;
* I found this in the "new" documentation for LineChart in the dependant library nvds http://nvd3-community.github.io/nvd3/examples/documentation.html
Here is a working example :
http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview
add a comment |
just set the undocumented* option showLastValue
$scope.options =
chart:
type: 'sparklinePlus',
height: 300,
showLastValue: false,
;
* I found this in the "new" documentation for LineChart in the dependant library nvds http://nvd3-community.github.io/nvd3/examples/documentation.html
Here is a working example :
http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview
just set the undocumented* option showLastValue
$scope.options =
chart:
type: 'sparklinePlus',
height: 300,
showLastValue: false,
;
* I found this in the "new" documentation for LineChart in the dependant library nvds http://nvd3-community.github.io/nvd3/examples/documentation.html
Here is a working example :
http://plnkr.co/edit/310OK7vgHuxcXj0GWkpc?p=preview
edited Nov 15 '18 at 8:04
answered Nov 15 '18 at 7:58
Johno ScottJohno Scott
1,6051512
1,6051512
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f34864193%2fangular-nvd3-sparkline-and-trailing-currentvalue-number%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown