Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add "text-only" chart renderer#5971

Merged
cakrit merged 2 commits into
netdata:masterfrom
Daniel15:textonly
May 13, 2019
Merged

Add "text-only" chart renderer#5971
cakrit merged 2 commits into
netdata:masterfrom
Daniel15:textonly

Conversation

@Daniel15

@Daniel15 Daniel15 commented May 5, 2019

Copy link
Copy Markdown
Contributor
Summary

Adds a "text-only" chart renderer. The idea is that you can do something like this:

<div data-netdata="system.cpu" data-chart-library="textonly"></div>

And it'll just show the raw value within the element. Probably worth adding more options, but this is just a basic implementation to start with.

Demo: https://d.ls/netdata/textonly-test.htm

Fixes #5578

Component Name

web/gui

Additional Information

@CLAassistant

CLAassistant commented May 5, 2019

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@gmosx gmosx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice little addition.

@cakrit

cakrit commented May 8, 2019

Copy link
Copy Markdown
Contributor

@Daniel15 can you also put a couple of examples in web/gui/dashboard.html so that others can see it in action? I will merge when you add that as well.

@cakrit cakrit merged commit f3473aa into netdata:master May 13, 2019
@Daniel15

Copy link
Copy Markdown
Contributor Author

Sorry I didn't get back to this @cakrit - I can submit another PR adding some examples if you like.

@cakrit

cakrit commented May 14, 2019

Copy link
Copy Markdown
Contributor

That would be great mate, much appreciated!

jackyhuang85 pushed a commit to jackyhuang85/netdata that referenced this pull request Jan 1, 2020
* Add "text-only" chart renderer

* Add options for prefix, suffix, and number of decinal places to show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom dashboard - Just displaying a number

5 participants