From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sun, 26 Jan 2020 20:35:53 +0000 (-0800) Subject: Improved financial sample (#6998) X-Git-Tag: v3.0.0-alpha~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47c7a42aaee3a007bb739703c5207cb3b7aa4752;p=thirdparty%2FChart.js.git Improved financial sample (#6998) * Improved financial sample * Switch from adapter to moment * Use data instead of cached timestamps --- diff --git a/samples/advanced/financial.html b/samples/advanced/financial.html new file mode 100644 index 000000000..64a426558 --- /dev/null +++ b/samples/advanced/financial.html @@ -0,0 +1,251 @@ + + + + + Line Chart + + + + + + + +
+

This example demonstrates a time series scale with custom logic for generating minor and major ticks. Major ticks are bolded

+

For more specific functionality for financial charts, please see chartjs-chart-financial

+ +
+
+
+ Chart Type: + + + + + + + diff --git a/samples/samples.js b/samples/samples.js index 518b7696c..b93cc773e 100644 --- a/samples/samples.js +++ b/samples/samples.js @@ -124,9 +124,6 @@ }, { title: 'Line (break on 2 day gap)', path: 'scales/time/line-max-span.html' - }, { - title: 'Time Series', - path: 'scales/time/financial.html' }, { title: 'Combo', path: 'scales/time/combo.html' @@ -242,6 +239,9 @@ }, { title: 'Advanced', items: [{ + title: 'Custom minor and major ticks', + path: 'advanced/financial.html' + }, { title: 'Progress bar', path: 'advanced/progress-bar.html' }, { diff --git a/samples/scales/time/financial.html b/samples/scales/time/financial.html deleted file mode 100644 index 70246820c..000000000 --- a/samples/scales/time/financial.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - Line Chart - - - - - - - -
-

This example demonstrates a time series scale by drawing a financial line chart using just the core library. For more specific functionality for financial charts, please see chartjs-chart-financial

- -
-
-
- Chart Type: - - - - - - -