Skip to content

EasyPieChart

Valentin Hilbig edited this page Mar 25, 2021 · 7 revisions

Overview - THIS PAGE IS UNDER CONSTRUCTION

Settings

Value Range

You can set the max value of the chart using the following snippet:

<div data-netdata="unique.id"
     data-chart-library="easypiechart"
     data-easypiechart-max-value="40"
     ></div>

Be aware that values that exceed the max value will get expanded (e.g. "41" is still 100%). Similar for the minimum:

<div data-netdata="unique.id"
     data-chart-library="easypiechart"
     data-easypiechart-min-value="20"
     ></div>

If you specify both minimum and maximum, the rendering behavior changes. Instead of displaying the value based from zero, it is now based on the range that is provided by the snippet:

<div data-netdata="unique.id"
     data-chart-library="easypiechart"
     data-easypiechart-min-value="20"
     data-easypiechart-max-value="40"
     ></div>

In the first example, a value of 30, without specifying the minimum, fills the chart bar to 75% (100% / 40 * 30). However, in this example the range is now 20 (40 - 20 = 20). The value 30 will fill the chart to 50%, since it's in the middle between 20 and 40.

This szenario is useful if you have metrics that change only within a specific range, e.g. temperatures that are very unlikely to fall out of range. In these cases it is more useful to have the chart render the values between the given min and max, to better highlight the changes within them.

Negative Values

EasyPieCharts can render negative values with the following flag:

<div data-netdata="unique.id"
     data-chart-library="easypiechart"
     data-override-options="signed"
     ></div>

Negative values are rendered counter-clockwise.

Full example

This is a chart that displays the hotwater temperature in the given range of 40 to 50.

<div data-netdata="stiebeleltron_system.hotwater.hotwatertemp"
                     data-title="Hot Water Temperature"
                     data-decimal-digits="1"
                     data-chart-library="easypiechart"
                     data-colors="#FE3912"
                     data-width="55%"
                     data-height="50%"
                     data-points="1200"
                     data-after="-1200"
                     data-dimensions="actual"
                     data-units="°C"
                     data-easypiechart-max-value="50"
                     data-easypiechart-min-value="40"
                     data-common-max="netdata-hotwater-max"
                     data-common-min="netdata-hotwater-min"
></div>

hot water chart

General


Running Netdata

Special Uses

Notes on memory management


Database Replication and Mirroring


Backends
archiving netdata collected metrics to a time-series database


Health monitoring - Alarms
alarms and alarm notifications in netdata


Netdata Registry


Monitoring Info


Netdata Badges


Data Collection

Binary Modules

Python Modules

Node.js Modules

BASH Modules

Active BASH Modules

Obsolete BASH Modules


API Documentation


Web Dashboards


Running behind another web server


Package Maintainers


Donations


Blog


Other monitoring tools

Clone this wiki locally