analytics/assets/js
Vini Brasil db9b4b81fb
Refactor: Graph Dataset functions (#2690)
* Refactor graph dataset building function

This commit refactors the graph dataset building functions into three
separate functions, one for each plot: main plot, comparison plot, and
dashed plot.

* Merge default graph dataset options

This commit moves default options from graph building functions to the
main function.

* Remove truncateToPresentIndex function

* Include dashed part when comparing periods

This commit fixes a bug where some period + interval combinations were
not working properly with comparisons. This is because `present_index`
is not available in every period, e.g. Last Month.
2023-02-21 11:36:26 -03:00
..
dashboard Refactor: Graph Dataset functions (#2690) 2023-02-21 11:36:26 -03:00
polyfills 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
app.js 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
embed.content.js Allow custom styles to be passed to embedded iframe (#1522) 2021-12-08 11:53:37 +02:00
embed.host.js Allow custom styles to be passed to embedded iframe (#1522) 2021-12-08 11:53:37 +02:00