From f6a8a400223ffd7cd402eade90fcf1015ffa1d4c Mon Sep 17 00:00:00 2001 From: Misiek Date: Tue, 12 Jul 2016 10:04:06 +0200 Subject: Simplify documentation --- doc/tile__line_chart.rst | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'doc/tile__line_chart.rst') diff --git a/doc/tile__line_chart.rst b/doc/tile__line_chart.rst index ce7152d..3ad764d 100644 --- a/doc/tile__line_chart.rst +++ b/doc/tile__line_chart.rst @@ -52,7 +52,7 @@ Example:: :: - value = {} + value = {, simplify: } where: @@ -74,6 +74,24 @@ Example:: -- this will set up the grid (in white color), black background and will turn off shadow effects as well as borders. +simplify_config + +:: + + simplify_config = { + tolerancy: 10, + data_points_limit: 50, // we will TRY to achieve lower number of data points than this + max_simplifying_steps: 5, + simplify_step_multiplicator: 1.5 + }; + +Each option is self-describing. This feature tries to optimize dataset to achieve points count lower than `data_points_limit`. If simplify_config is not set, there won't be any simplify process at all (you will just have your raw data displayed). + +:: + + curl -X POST http://127.0.0.1:7272/api/v0.1/dev_key/tileconfig/test_line + -d 'value={"simplify": {"tolerancy": 2}}' + .. note:: In case of displaying multiple plots on a single chart (e.g. for more than -- cgit v1.2.3