From ef03469fec14f1f0358b690934fc173d744f4e7d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:26:01 +0200 Subject: Adding debian version 5.6.0-1. Signed-off-by: Daniel Baumann --- .../epoch/tests/render/basic/area.html | 450 +++++++++++++ .../epoch/tests/render/basic/bar.html | 745 +++++++++++++++++++++ .../epoch/tests/render/basic/histogram.html | 155 +++++ .../epoch/tests/render/basic/line.html | 471 +++++++++++++ .../epoch/tests/render/basic/model.html | 94 +++ .../epoch/tests/render/basic/options.html | 267 ++++++++ .../epoch/tests/render/basic/pie.html | 346 ++++++++++ .../epoch/tests/render/basic/scatter.html | 398 +++++++++++ .../epoch/tests/render/css/tests.css | 12 + .../missing-sources/epoch/tests/render/index.html | 57 ++ .../missing-sources/epoch/tests/render/js/data.js | 210 ++++++ .../epoch/tests/render/real-time/area.html | 494 ++++++++++++++ .../epoch/tests/render/real-time/bar.html | 484 +++++++++++++ .../epoch/tests/render/real-time/gauge.html | 283 ++++++++ .../epoch/tests/render/real-time/heatmap.html | 559 ++++++++++++++++ .../epoch/tests/render/real-time/line.html | 596 +++++++++++++++++ .../epoch/tests/render/real-time/model.html | 85 +++ .../epoch/tests/render/real-time/options.html | 299 +++++++++ .../epoch/tests/render/themes/dark.html | 211 ++++++ .../epoch/tests/render/themes/default.html | 70 ++ 20 files changed, 6286 insertions(+) create mode 100644 debian/missing-sources/epoch/tests/render/basic/area.html create mode 100644 debian/missing-sources/epoch/tests/render/basic/bar.html create mode 100644 debian/missing-sources/epoch/tests/render/basic/histogram.html create mode 100644 debian/missing-sources/epoch/tests/render/basic/line.html create mode 100644 debian/missing-sources/epoch/tests/render/basic/model.html create mode 100644 debian/missing-sources/epoch/tests/render/basic/options.html create mode 100644 debian/missing-sources/epoch/tests/render/basic/pie.html create mode 100644 debian/missing-sources/epoch/tests/render/basic/scatter.html create mode 100644 debian/missing-sources/epoch/tests/render/css/tests.css create mode 100644 debian/missing-sources/epoch/tests/render/index.html create mode 100644 debian/missing-sources/epoch/tests/render/js/data.js create mode 100644 debian/missing-sources/epoch/tests/render/real-time/area.html create mode 100644 debian/missing-sources/epoch/tests/render/real-time/bar.html create mode 100644 debian/missing-sources/epoch/tests/render/real-time/gauge.html create mode 100644 debian/missing-sources/epoch/tests/render/real-time/heatmap.html create mode 100644 debian/missing-sources/epoch/tests/render/real-time/line.html create mode 100644 debian/missing-sources/epoch/tests/render/real-time/model.html create mode 100644 debian/missing-sources/epoch/tests/render/real-time/options.html create mode 100644 debian/missing-sources/epoch/tests/render/themes/dark.html create mode 100644 debian/missing-sources/epoch/tests/render/themes/default.html (limited to 'debian/missing-sources/epoch/tests/render') diff --git a/debian/missing-sources/epoch/tests/render/basic/area.html b/debian/missing-sources/epoch/tests/render/basic/area.html new file mode 100644 index 0000000..ea23851 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/basic/area.html @@ -0,0 +1,450 @@ + + + + + + + + + + + +

Basic Area Chart Test

+ + +
    +
  1. Single Series
  2. +
  3. Single Series II
  4. +
  5. Multi Series
  6. +
  7. Multi Series II
  8. +
  9. Single Series Transition
  10. +
  11. Multi Series Transition
  12. +
  13. Single Series to Multi Series Transition
  14. +
  15. Layer Color Override
  16. +
  17. Categorical Color Switching
  18. +
  19. Multi Series without Labels
  20. +
  21. Hide/Show Layers
  22. +
  23. Data Format
  24. +
+ + + +
+

1. Single Series

+

It should display a plot of y = cos(x) + 1 over the range [0, 2π).

+
+
+ + + + + +
+

2. Single Series II

+

It should display a plot of y = sin(x) + 1 over the range [0, 2π).

+
+
+ + + + + +
+

3. Multi-series Plot

+

+ It should display a plot of the following functions stacked atop one another: +

    +
  • y = x
  • +
  • y = 2x
  • +
  • y = 3x
  • +
+ over the range [0, 10). +

+
+
+ + + + + +
+

4. Multi-series Plot II

+

+ It should display a plot of the following functions stacked atop one another: +

    +
  • y = |x|
  • +
  • y = x2
  • +
  • y = |x3|
  • +
+ over the range [-1, 1). +

+
+
+ + + + + +
+

5. Single Series Transition

+

+ It should correctly transition between the plots y = |x| over the range [-10, 10) and y = x2 over the range [-20, 20). The transition should be initiated when pressing the buttons below the plot. +

+
+

+ + +

+
+ + + + +
+

6. Multi Series Transition

+

+ It should correctly render and transition between Set A: +

    +
  • y = x
  • +
  • y = 2*x
  • +
  • y = 3*x
  • +
+ over the range [1, 100). and Set B: +
    +
  • y = ln(x)
  • +
  • y = 2*ln(x)
  • +
  • y = 3*ln(x)
  • +
+ over the range [1, 100). The transition should be initiated when pressing the buttons below the plot. +
+

+ + +

+
+ + + + + +
+

7. Single Series to Multi Series Transition

+

+ It should correctly transition between a single series, plotting the functions: +

    +
  • y = x2 - 0.5*x
  • +
+ To a multi series set, plotting the functions: +
    +
  • y = ln(x)
  • +
  • y = x
  • +
  • y = x * ln(x)
  • +
+ over the range [1, 4) for all plots. The transition should be initiated when pressing the buttons below the plot. +

+
+

+ + +

+
+ + + + +
+

8. Layer Color Override

+

+ It should display the first layer of the plot as pink, the second layer as green, and the third layer as blue. +

+
+
+ + + + + + +
+

9. Categorical Color Switching

+

+ It should change layer colors automatically when switching between the following categorical color classes on the containing element: +

    +
  • category10
  • +
  • category20
  • +
  • category20b
  • +
  • category20c
  • +
+ The colors should change when pressing the buttons for each categorical type below the chart. +

+ +
+ +

+ + + + +

+
+ + + +
+

10. Multi Series without Labels

+

+ Correctly render a multi-series plot of: +

    +
  • y = sin(x) + 1
  • +
  • y = cos(x) + 1
  • +
+ where the layers are given without labels. +

+
+
+ + + +
+

11. Hide/Show Layers

+

Correctly hide and show multiple layers

+
+

+ + + +

+
+ + + + diff --git a/debian/missing-sources/epoch/tests/render/basic/bar.html b/debian/missing-sources/epoch/tests/render/basic/bar.html new file mode 100644 index 0000000..07b5122 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/basic/bar.html @@ -0,0 +1,745 @@ + + + + + + + + + + + +

Basic Bar Chart Test

+ + +
    +
  1. Single Series
  2. +
  3. Single Series II
  4. +
  5. Multi Series
  6. +
  7. Multi Series II
  8. +
  9. Single Series Transition
  10. +
  11. Multi Series Transition
  12. +
  13. Single Series to Multi Series Transition
  14. +
  15. Layer Color Override
  16. +
  17. Categorical Color Switching
  18. +
  19. Multi Series without Labels
  20. +
  21. Horizontally Oriented Single Series
  22. +
  23. Horizontally Oriented Multi Series
  24. +
  25. Horizontally Oriented Multi Series Transition
  26. +
  27. Vertical to Horizontal Transition
  28. +
  29. Padding Changes
  30. +
  31. Hide/Show Layers
  32. +
  33. Data Formatting
  34. +
  35. Many bars
  36. +
+ + + +
+

1. Single Series

+

Display a plot of y = cos(x) + 1 over the range [0, 2π).

+
+
+ + + + + +
+

2. Single Series II

+

Display a plot of y = sin(x) + 1 over the range [0, 2π).

+
+
+ + + + + +
+

3. Multi-series Plot

+

+ Display a plot of the following functions stacked atop one another: +

    +
  • y = x
  • +
  • y = 2x
  • +
  • y = 3x
  • +
+ over the range [0, 10). +

+
+
+ + + + + +
+

4. Multi-series Plot II

+

+ Display a plot of the following functions stacked atop one another: +

    +
  • y = |x|
  • +
  • y = x2
  • +
  • y = |x3|
  • +
+ over the range [-1, 1). +

+
+
+ + + + + +
+

5. Single Series Transition

+

+ Correctly transition between the plots y = |x| over the range [-10, 10) and y = x2 over the range [-20, 20). The transition is initiated by pressing the buttons below the plot. +

+
+

+ + +

+
+ + + + +
+

6. Multi Series Transition

+

+ Correctly render and transition between Set A: +

    +
  • y = x
  • +
  • y = 2*x
  • +
  • y = 3*x
  • +
+ over the range [1, 100). and Set B: +
    +
  • y = ln(x)
  • +
  • y = 2*ln(x)
  • +
  • y = 3*ln(x)
  • +
+ over the range [1, 100). The transition is initiated by pressing the buttons below the plot. +
+

+ + +

+
+ + + + + +
+

7. Single Series to Multi Series Transition

+

+ Correctly transition between a single series, plotting the functions: +

    +
  • y = x2 - 0.5*x
  • +
+ To a multi series set, plotting the functions: +
    +
  • y = ln(x)
  • +
  • y = x
  • +
  • y = x * ln(x)
  • +
+ over the range [1, 4) for all plots. The transition is initiated by pressing the buttons below the plot. +

+
+

+ + +

+
+ + + + +
+

8. Layer Color Override

+

+ Display the first layer of the plot as pink, the second layer as green, and the third layer as blue. +

+
+
+ + + + + + +
+

9. Categorical Color Switching

+

+ Change layer colors automatically when switching between the following categorical color classes on the containing element: +

    +
  • category10
  • +
  • category20
  • +
  • category20b
  • +
  • category20c
  • +
+ Change the categorical colors by pressing the buttons below the chart. +

+ +
+ +

+ + + + +

+
+ + + +
+

10. Multi Series without Labels

+

+ Correctly render a multi-series plot of: +

    +
  • y = sin(x) + 1
  • +
  • y = cos(x) + 1
  • +
+ where the layers are given without labels. +

+
+
+ + + +
+

11. Horizontally Oriented Single Series

+

+ Correctly render the single series plot of: +

    +
  • A - 20
  • +
  • B - 30
  • +
  • C - 60
  • +
+ using a horizontal orientation. +

+
+
+ + + +
+

12. Horizontally Oriented Multi Series

+

+ Correctly render the multi series plot of: +

    +
  • A - 10, 30
  • +
  • B - 20, 50
  • +
  • C - 60, 10
  • +
+ using a horizontal orientation. +

+
+
+ + + +
+

13. Horizontally Oriented Multi Series Transition

+

+ Correctly render the Horizontally oriented multi series plot of: +

    +
  • A - 10, 10
  • +
  • B - 20, 20
  • +
  • C - 30, 30
  • +
+ and transition to the single series plot: +
    +
  • A - 5
  • +
  • B - 10
  • +
  • C - 40
  • +
+

+
+

+ + +

+
+ + +
+

14. Vertical to Horizontal Transition

+
+

+ + +

+
+ + +
+

15. Padding Changes

+
+

+ + +

+
+ + +
+

16. Hide/Show Layers

+
+

+ + + + | + +

+
+ + +
+

17. Data Formatting

+

Ensure the chart works with the array, tuple, and key-value data formats.

+

+
+
+
+ + +
+

18. Bar Ticks

+

Ensure that we can use ticks option with bar charts.

+

+
+ + + diff --git a/debian/missing-sources/epoch/tests/render/basic/histogram.html b/debian/missing-sources/epoch/tests/render/basic/histogram.html new file mode 100644 index 0000000..505054e --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/basic/histogram.html @@ -0,0 +1,155 @@ + + + + + + + + + + + + + + +

Basic Bar Chart Test

+ + +
    +
  1. Beta(2, 5)
  2. +
  3. Beta(2, 5) Horizontal
  4. +
  5. Option: buckets
  6. +
  7. Options: bucketRange & cutOutliers
  8. +
+ + +
+

1. Beta(2, 5)

+

Plot a random selection of points from the Beta(2, 5) distribution as a histogram.

+
+

+
+ + + +
+

2. Beta(2, 5) Horizontal

+

Plot a random selection of points from Beta(2, 5) and display in a horizontal histogram.

+
+

+
+ + + +
+

3. Option: buckets

+

Plot Beta(2, 2) and change number of buckets on the fly.

+
+

+ + + + + | + +

+
+ + + +
+

4. Options: bucketRange & cutOutliers

+

Plot beta(2, 5) and change the bucket range on the fly.

+
+

+ + + | + + | + +

+
+ + + diff --git a/debian/missing-sources/epoch/tests/render/basic/line.html b/debian/missing-sources/epoch/tests/render/basic/line.html new file mode 100644 index 0000000..37de38d --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/basic/line.html @@ -0,0 +1,471 @@ + + + + + + + + + + + +

Basic Line Chart Test

+ + +
    +
  1. Single Series
  2. +
  3. Single Series II
  4. +
  5. Multi Series
  6. +
  7. Single Series Transition
  8. +
  9. Multi Series Transition
  10. +
  11. Single to Multi Series Transition
  12. +
  13. Color Override
  14. +
  15. Categorical Colors
  16. +
  17. Multi Series without Labels
  18. +
  19. Multi Series with Fixed Domain
  20. +
  21. Show/Hide Layers
  22. +
+ + +
+

1. Single Series

+

Display a plot of y = cos(x) over the range [-2π, 2π).

+
+
+ + + + +
+

2. Single Series II

+

Display a plot of y = ex*sin(x) from [0, &pi).

+
+
+ + + + +
+

3. Multi Series

+

+ Display a plot of the following functions over the range [0, 2π]: +

    +
  • x*sin(x)
  • +
  • x*cos(x)
  • +
+

+
+
+ + + + +
+

4. Single Series Transition

+

+ Correctly transition between the functions y = 1 / x and y = x2 over the range [1, 2). + Use the buttons below the chart to initiate the transitions. +

+
+

+ + +

+
+ + + + +
+

5. Multi Series Transition

+

+ Correctly transition between Set A: +

    +
  • y = sin(x)
  • +
  • y = x - x3/3! + x5/5!
  • +
+ Set B: +
    +
  • y = cos(x)
  • +
  • y = 1 - x2/2! + x4/4!
  • +
+ and Set C: +
    +
  • y = sin(x) - (x - x3/3! + x5/5!)
  • +
  • y = cos(x) - (1 - x2/2! + x4/4!)
  • +
+

+
+

+ + + +

+
+ + + + +
+

6. Single to Multi Series Transition

+

+ Correctly transition between Set A: +

    +
  • y = ln(x)
  • +
+ Set B: +
    +
  • y = ln(x)
  • +
  • y = x * ln(x)
  • +
  • y = x * ln(x)2
  • +
+

+
+

+ + +

+
+ + + + +
+

7. Color Override

+

+ Display the first layer of the plot as pink, the second layer as green, and the third layer as blue. +

+
+
+ + + + + + +
+

Categorical Colors

+

+ Change layer colors automatically when switching between the following categorical color classes on the containing element: +

    +
  • category10
  • +
  • category20
  • +
  • category20b
  • +
  • category20c
  • +
+ Change the categorical colors by pressing the buttons below the chart. +

+
+

+ + + + +

+
+ + + + + +
+

9. Multi Series without Labels

+

+ Correctly render a multi-series plot of: +

    +
  • y = sin(x)
  • +
  • y = cos(x)
  • +
+ where the layers are given without labels. +

+
+
+ + + +
+

10. Multi Series with Fixed Domain

+

+ Display a plot of the following functions: +

    +
  • x*sin(x)
  • +
  • x*cos(x)
  • +
+ On the domain [0, 5] and range [0, 4]. +

+
+
+ + + + +
+

11. Show/Hide Layers

+
+

+ + + +

+
+ + + +
+

12. Multi-axis

+
+
+ + + diff --git a/debian/missing-sources/epoch/tests/render/basic/model.html b/debian/missing-sources/epoch/tests/render/basic/model.html new file mode 100644 index 0000000..2814fd8 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/basic/model.html @@ -0,0 +1,94 @@ + + + + + + + + + + + + +

Basic Chart Model / Data Test

+ + +

+ + + +

+ +
+
+
+ + + + \ No newline at end of file diff --git a/debian/missing-sources/epoch/tests/render/basic/options.html b/debian/missing-sources/epoch/tests/render/basic/options.html new file mode 100644 index 0000000..5ff2d7e --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/basic/options.html @@ -0,0 +1,267 @@ + + + + + + + + + + + + +

Basic Chart Options and Events

+ +
    +
  1. Axes
  2. +
  3. Margins
  4. +
  5. Ticks and Tick Formats
  6. +
  7. Resize
  8. +
  9. Domain
  10. +
  11. Range
  12. +
+ + +
+

1. Axes

+

+ Correctly add and remove axes when options are set. +

+
+
+ + + + + + +
+
+ + + + +
+

2. Margins

+

+ Correctly resize margins when options are set. +

+
+
+ + + +
+
+ + + +
+

3. Ticks and Tick Formats

+

+ Correctly resize margins when options are set. +

+
+
+ + +
+
+ + + +
+

4. Resize

+

+ Correctly resize the chart when the width and height options are set. +

+
+
+ + +
+
+ + + +
+

6. Option: domain

+
+

+ + +

+
+ + + + +
+

7. Option: range

+
+

+ + +

+
+ + + + \ No newline at end of file diff --git a/debian/missing-sources/epoch/tests/render/basic/pie.html b/debian/missing-sources/epoch/tests/render/basic/pie.html new file mode 100644 index 0000000..fe105e8 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/basic/pie.html @@ -0,0 +1,346 @@ + + + + + + + + + + + +

Basic Pie Chart Test

+ +
    +
  1. Basic Pie Test
  2. +
  3. Basic Donut Test
  4. +
  5. Pie Tranisition I
  6. +
  7. Pie Tranisition II
  8. +
  9. Color Override
  10. +
  11. Categorical Colors
  12. +
  13. Pie Chart Layers without Labels
  14. +
  15. Margin Changes
  16. +
  17. Inner Changes
  18. +
  19. Show/Hide Layers
  20. +
+ + +
+

Basic Pie Test

+

+ Correctly render a pie chart with three categories: +

    +
  • A - 20
  • +
  • B - 45
  • +
  • C - 35
  • +
+

+
+
+ + + + +
+

2. Basic Donut Test

+

+ Correctly render a donut chart with three categories: +

    +
  • A - 50
  • +
  • B - 30
  • +
  • C - 20
  • +
+

+
+
+ + + + +
+

3. Pie Tranisition I

+

+ Correctly transition between set A: +

    +
  • A - 20
  • +
  • B - 80
  • +
+ and set B: +
    +
  • A - 20
  • +
  • B - 30
  • +
  • C - 50
  • +
+ Use the buttons below the chart to initiate the transitions. +

+
+

+ + +

+
+ + + + +
+

4. Pie Tranisition II

+

+ Correctly transition between set A: +

    +
  • A - 20
  • +
  • B - 80
  • +
+ and set B: +
    +
  • A - 50
  • +
  • B - 50
  • +
+ Use the buttons below the chart to initiate the transitions. +

+
+

+ + +

+
+ + + + +
+

5. Color Override

+

+ Override the colors as such: +

    +
  • A - Pink
  • +
  • B - Green
  • +
  • C - Blue
  • +
+

+
+
+ + + + + + +
+

6. Categorical Colors

+

+ Correctly transition between different categorical colors sets. +

+
+

+ + + + +

+
+ + + + + + +
+

7. Pie Chart Layers without Labels

+

+ Correctly render a pie chart with three categories: +

    +
  • 30
  • +
  • 35
  • +
  • 35
  • +
+ when the layers are not provided labels. +

+
+
+ + + + +
+

8. Margin Changes

+
+

+ + +

+
+ + + +
+

9. Inner Changes

+
+

+ + + +

+
+ + + +
+

10. Show/Hide Layers

+
+

+ + + +

+
+ + + \ No newline at end of file diff --git a/debian/missing-sources/epoch/tests/render/basic/scatter.html b/debian/missing-sources/epoch/tests/render/basic/scatter.html new file mode 100644 index 0000000..31f1e42 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/basic/scatter.html @@ -0,0 +1,398 @@ + + + + + + + + + + + +

Basic Scatter Plot Test

+ +
    +
  1. Single Series
  2. +
  3. Multi Series
  4. +
  5. Single Series Transition
  6. +
  7. Multi Series Transition
  8. +
  9. Multi Series Transition II
  10. +
  11. Color Override
  12. +
  13. Categorical Colors
  14. +
  15. Multi Series without Labels
  16. +
  17. Single Series with Radius
  18. +
  19. Radius Change
  20. +
  21. Show/Hide Layers
  22. +
+ + +
+

1. Single Series

+

Render a single random series scatter plot.

+
+
+ + + +
+

2. Multi Series

+

Render three random scatter series in the same plot.

+
+
+ + + +
+

3. Single Series Transition

+

+ Transition from one random series to another random series. Use the + buttons below the plot to initiate the transition. +

+
+

+ + +

+
+ + + +
+

4. Multi Series Transition

+

+ Transition from a set of multiple randoms series random series to another of multiple random series. Use the + buttons below the plot to initiate the transition. +

+
+

+ + +

+
+ + + +
+

5. Multi Series Transition II

+

+ Transition from a multi-series set of random data to a single series set of random data. +

+
+

+ + +

+
+ + + +
+

6. Color Override

+

The first series should be pink, the second green, and thrid blue.

+
+
+ + + + +
+

7. Categorical Colors

+

+ Correctly transition between different categorical color sets. +

+
+

+ + + + +

+
+ + + +
+

8. Multi Series without Labels

+

Correctly render two random scatter plots when labels are not specified for the layers.

+
+
+ + + +
+

9. Single Series with Radius

+

Render a single random series scatter plot with different radii.

+
+

+ +

+
+ + + +
+

10. Radius Change

+
+

+ + + + +

+
+ + + +
+

11. Show/Hide Layers

+
+

+ + + +

+
+ + + + diff --git a/debian/missing-sources/epoch/tests/render/css/tests.css b/debian/missing-sources/epoch/tests/render/css/tests.css new file mode 100644 index 0000000..7f4099e --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/css/tests.css @@ -0,0 +1,12 @@ +body { + font-family: helvetica; +} + +/* Default test chart height of 220px. */ +.test .epoch { + height: 220px; +} + +.broken { + color: red; +} diff --git a/debian/missing-sources/epoch/tests/render/index.html b/debian/missing-sources/epoch/tests/render/index.html new file mode 100644 index 0000000..1ab15c1 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/index.html @@ -0,0 +1,57 @@ + + + + Epoch - Chart Rendering Tests + + + + + + + +

Epoch Chart Rendering Tests

+ +

Basic Charts

+

+

+

+ +

Real-time Charts

+

+

+

+ +

Themes

+

+

+

+ +

Data / Models

+

+

+

+ + diff --git a/debian/missing-sources/epoch/tests/render/js/data.js b/debian/missing-sources/epoch/tests/render/js/data.js new file mode 100644 index 0000000..a49da68 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/js/data.js @@ -0,0 +1,210 @@ +(function() { + + // Quick data generator + Data = function() { + this.layers = [] + }; + + Data.prototype.add = function(fn) { + fn = fn ? fn : function(x) { return x; }; + this.layers.push(fn); + return this; + }; + + Data.prototype.get = function(domain, step) { + domain = domain ? domain : [0, 10]; + step = step ? step : 1; + + var data = [] + for (var i = 0; i < this.layers.length; i++) { + layer = { label: String.fromCharCode(i + 65), values: [] }; + for (var x = domain[0]; x < domain[1]; x += step) { + layer.values.push({ x: x, y: this.layers[i](x) }); + } + data.push(layer); + } + return data; + }; + + Data.prototype.random = function(entries, domain, range) { + entries = entries ? entries : 50; + domain = domain ? domain : [0, 100]; + range = range ? range : [0, 100]; + + var values = []; + for (var i = 0; i < entries; i++) { + var x = (domain[1] - domain[0]) * Math.random() + domain[0], + y = (range[1] - range[0]) * Math.random() + range[1]; + values.push({ x: x, y: y }); + } + + return [{ label: 'A', values: values }]; + }; + + Data.prototype.multiRandom = function(numSeries, entries, domain, range) { + numSeries = numSeries ? numSeries : 3; + entries = entries ? entries : 50; + domain = domain ? domain : [0, 100]; + range = range ? range : [0, 100]; + + var data = []; + + for (var j = 0; j < numSeries; j++) { + var layer = { label: String.fromCharCode(65 + j), values: [] }; + for (var i = 0; i < entries; i++) { + var x = (domain[1] - domain[0]) * Math.random() + domain[0], + y = (range[1] - range[0]) * Math.random() + range[1]; + layer.values.push({ x: x, y: y }); + } + data.push(layer); + } + + return data; + }; + + window.data = function() { return new Data(); }; + + + // Quick real-time data generator + Time = function() { + Data.call(this); + }; + + Time.prototype = new Data() + + Time.prototype.get = function(domain, step) { + var data = Data.prototype.get.apply(this, arguments), + time = parseInt(new Date().getTime() / 1000); + + for (var i = 0; i < data[0].values.length; i++) { + for (var j = 0; j < this.layers.length; j++) { + delete data[j].values[i].x; + data[j].values[i].time = time + i; + } + } + + this.currentTime = time; + this.lastX = domain[1]; + + return data; + }; + + Time.prototype.next = function(step) { + this.currentTime++; + this.lastX += (step ? step : 1); + + var data = []; + for (var j = 0; j < this.layers.length; j++) { + data.push({ time: this.currentTime, y: this.layers[j](this.lastX) }) + } + + return data; + } + + window.time = function() { return new Time(); }; + + + + + window.nextTime = (function() { + var currentTime = parseInt(new Date().getTime() / 1000); + return function() { return currentTime++; } + })(); + + + /* + * Normal distribution random histogram data generator. + */ + var NormalData = function(layers) { + this.layers = layers; + this.timestamp = ((new Date()).getTime() / 1000)|0; + }; + + var normal = function() { + var U = Math.random(), + V = Math.random(); + return Math.sqrt(-2*Math.log(U)) * Math.cos(2*Math.PI*V); + }; + + NormalData.prototype.sample = function() { + return parseInt(normal() * 12.5 + 50); + } + + NormalData.prototype.rand = function() { + var histogram = {}; + + for (var i = 0; i < 1000; i ++) { + var r = this.sample(); + if (!histogram[r]) { + histogram[r] = 1; + } + else { + histogram[r]++; + } + } + + return histogram; + }; + + NormalData.prototype.history = function(entries) { + if (typeof(entries) != 'number' || !entries) { + entries = 60; + } + + var history = []; + for (var k = 0; k < this.layers; k++) { + history.push({ label: String.fromCharCode(65+k), values: [] }); + } + + for (var i = 0; i < entries; i++) { + for (var j = 0; j < this.layers; j++) { + history[j].values.push({time: this.timestamp, histogram: this.rand()}); + } + this.timestamp++; + } + + return history; + }; + + NormalData.prototype.next = function() { + var entry = []; + for (var i = 0; i < this.layers; i++) { + entry.push({ time: this.timestamp, histogram: this.rand() }); + } + this.timestamp++; + return entry; + } + + window.NormalData = NormalData; + + + /* + * Beta distribution histogram data generator. + */ + var BetaData = function(alpha, beta, layers) { + this.alpha = alpha; + this.beta = beta; + this.layers = layers; + this.timestamp = ((new Date()).getTime() / 1000)|0; + }; + + BetaData.prototype = new NormalData(); + + BetaData.prototype.sample = function() { + var X = 0, + Y = 0; + + for (var j = 1; j <= this.alpha; j++) + X += -Math.log(1 - Math.random()); + + for (var j = 1; j <= this.beta; j++) + Y += -Math.log(1 - Math.random()); + + return parseInt(100 * X / (X + Y)); + } + + window.BetaData = BetaData; + +})(); + + diff --git a/debian/missing-sources/epoch/tests/render/real-time/area.html b/debian/missing-sources/epoch/tests/render/real-time/area.html new file mode 100644 index 0000000..b66ab7d --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/real-time/area.html @@ -0,0 +1,494 @@ + + + + + + + + + + + + +

Real-time Area Plot Test

+ +
    +
  1. Single Series
  2. +
  3. Single Series Single Transition
  4. +
  5. Single Seires Stream
  6. +
  7. Multi Series
  8. +
  9. Multi Series Single Transition
  10. +
  11. Multi Seires Stream
  12. +
  13. Color Override
  14. +
  15. Categorical Colors
  16. +
  17. Show/Hide Layers
  18. +
+ + +
+

1. Single Series

+

+ Correctly render a single series plot of y = cos(x) + 1 over the range [0, 2π]. +

+
+
+ + + + +
+

2. Single Series Single Transition

+

+ Correctly render a single series plot of y = sin(x) + 1. When the button is pressed push a new data point to the chart and correctly animate/render the transiton. +

+
+

+
+ + + + + +
+

3. Single Seires Stream

+

Correctly play / pause a single series stream of values from the plot y = cos(x) + 1.

+
+

+
+ + + + +
+

4. Multi Series

+

Correctly render a multi series plot of the following functions:

+
    +
  • y = log(x+1)
  • +
  • y = 2*log(x+1)
  • +
  • y = 3*log(x+1)
  • +
+
+
+ + + + + +
+

5. Multi Series Single Transition

+

+ Correctly render a multi series plot of the following functions: +

    +
  • y = x
  • +
  • y = x1.25
  • +
  • y = x1.5
  • +
+ and correctly render/animate the transiton after pressing the "Next" button. +

+
+

+ +

+
+ + + + +
+

6. Multi Seires Stream

+

+ Correctly play / pause a multi series stream of values over the following plots: +

    +
  • x
  • +
  • x * log(x)
  • +
  • x * log2(x)
  • +
+

+
+

+
+ + + + +
+

7. Color Override

+

The first layer should pink, the second green, and the third blue.

+
+
+ + + + + + +
+

8. Categorical Colors

+

Correctly render and switch between different categorical colors. Unlike with the basic charts this doesn't occur just by switching the class name on the containing element. The CSS query engine must be purge and the plot must be manually redrawn, like so:

+Epoch.QueryCSS.purge();
+chart.draw();
+
+

+ +
+ +

+ + + + +

+
+ + + + +
+

9. Show/Hide Layers

+
+

+ + + | + +

+
+ + + +
+

10. Fixed Range

+

+ Render a single series plot of y = cos(x). Instead of automatically setting the range to [-1, 1], the range is manually set to [-2, 5]. +

+
+
+ + + + \ No newline at end of file diff --git a/debian/missing-sources/epoch/tests/render/real-time/bar.html b/debian/missing-sources/epoch/tests/render/real-time/bar.html new file mode 100644 index 0000000..952119c --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/real-time/bar.html @@ -0,0 +1,484 @@ + + + + + + + + + + + + +

Real-time Bar Test

+ +
    +
  1. Single Series
  2. +
  3. Single Series Single Transition
  4. +
  5. Single Seires Stream
  6. +
  7. Multi Series
  8. +
  9. Multi Series Single Transition
  10. +
  11. Multi Seires Stream
  12. +
  13. Color Override
  14. +
  15. Categorical Colors
  16. +
  17. Show/Hide Layers
  18. +
+ + +
+

1. Single Series

+

+ Correctly render a single series plot of y = cos(x) + 1 over the range [0, 2π]. +

+
+
+ + + + +
+

2. Single Series Single Transition

+

+ Correctly render a single series plot of y = sin(x) + 1. When the button is pressed push a new data point to the chart and correctly animate/render the transiton. +

+
+

+
+ + + + + +
+

3. Single Seires Stream

+

Correctly play / pause a single series stream of values from the plot y = cos(x) + 1.

+
+

+
+ + + + +
+

4. Multi Series

+

Correctly render a multi series plot of the following functions:

+
    +
  • y = log(x+1)
  • +
  • y = 2*log(x+1)
  • +
  • y = 3*log(x+1)
  • +
+
+
+ + + + + +
+

5. Multi Series Single Transition

+

+ Correctly render a multi series plot of the following functions: +

    +
  • y = x
  • +
  • y = x1.25
  • +
  • y = x1.5
  • +
+ and correctly render/animate the transiton after pressing the "Next" button. +

+
+

+ +

+
+ + + + +
+

6. Multi Seires Stream

+

+ Correctly play / pause a multi series stream of values over the following plots: +

    +
  • x
  • +
  • x * log(x)
  • +
  • x * log2(x)
  • +
+

+
+

+
+ + + + +
+

7. Color Override

+

The first layer should pink, the second green, and the third blue.

+
+
+ + + + + + +
+

8. Categorical Colors

+

Correctly render and switch between different categorical colors. Unlike with the basic charts this doesn't occur just by switching the class name on the containing element. The CSS query engine must be purge and the plot must be manually redrawn, like so:

+Epoch.QueryCSS.purge();
+chart.draw();
+
+

+ +
+ +

+ + + + +

+
+ + + + +
+

9. Show/Hide Layers

+
+

+ + + | + +

+
+ + + +
+

10. Fixed Range

+

+ Render a single series plot of y = cos(x) + 1. Instead of automatically setting the range to [0, 2], the range is manually set to [0, 5]. +

+
+
+ + + + \ No newline at end of file diff --git a/debian/missing-sources/epoch/tests/render/real-time/gauge.html b/debian/missing-sources/epoch/tests/render/real-time/gauge.html new file mode 100644 index 0000000..614334d --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/real-time/gauge.html @@ -0,0 +1,283 @@ + + + + + + + + + + + + +

Real-time Gauge Test

+ +
    +
  1. Single Value Display
  2. +
  3. Single Transition
  4. +
  5. Stream Transition
  6. +
  7. Gauge Sizes
  8. +
  9. Color Override
  10. +
  11. Option: domain
  12. +
  13. Option: ticks
  14. +
  15. Option: tickSize
  16. +
  17. Option: tickOffset
  18. +
  19. Option: format
  20. +
+ + +
+

1. Single Value Display

+

Display a single value of 25%

+
+
+ + + + +
+

2. Single Transition

+

Display value of 0% and transition to a random value when the button is pressed.

+
+

+
+ + + + +
+

3. Stream Transition

+

Display value of 0% and transition to a random value every second when the button is pressed.

+
+

+
+ + + +
+

4. Gauge Sizes

+

Display the four built-in gauge sizes in this order: tiny, small, medium, large.

+
+
+
+
+
+ + + +
+

5. Color Override

+

+ Override the basic gauge styles with the following +

    +
  • Outer arc 8px thickness colored green
  • +
  • Inner arc 2px thickness colored orange
  • +
  • Ticks should be 3px in width and red
  • +
  • Needle colored blue.
  • +
  • Needle base colored black
  • +
+

+
+
+ + + + + + + + + + +
+

6. Option: domain

+
+

+ | + + +

+
+ + + +
+

7. Option: ticks

+
+

+ | + + + + +

+
+ + + +
+

8. Option: tickSize

+
+

+ | + + + + +

+
+ + + +
+

9. Option: tickOffset

+
+

+ | + + + +

+
+ + + +
+

10. Option: format

+
+

+ | + + +

+
+ + + diff --git a/debian/missing-sources/epoch/tests/render/real-time/heatmap.html b/debian/missing-sources/epoch/tests/render/real-time/heatmap.html new file mode 100644 index 0000000..ddabe2e --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/real-time/heatmap.html @@ -0,0 +1,559 @@ + + + + + + + + + + + +

Real-time Heatmap Plot Test

+ +
    +
  1. Single Series - Normal
  2. +
  3. Single Series - Beta
  4. +
  5. Single Series - Normal, Single Update
  6. +
  7. Single Series - Beta, Stream Update
  8. +
  9. Single Series - Color Override
  10. +
  11. Multi Series - Normal + Beta
  12. +
  13. Multi Series Color Override
  14. +
  15. Range Independent Bucketing
  16. +
  17. Option: buckets
  18. +
  19. Option: bucketRange
  20. +
  21. Option: bucketPadding
  22. +
  23. Option: cutOutliers
  24. +
  25. Option: opacity
  26. +
  27. Show/Hide Layer
  28. +
+ + +
+

1. Single Series - Normal

+

Select random values from the normal distribution and display them with the heatmap.

+
+
+ + + +
+

2. Single Series - Beta

+

Select random values from the Beta(2, 5) distribution and display them with the heatmap.

+
+
+ + + +
+

3. Single Sieres - Normal, Single Update

+

+ Plot the normal distribution and transition a new element when the button is pressed. +

+
+

+
+ + + +
+

4. Single Series - Beta, Stream Update

+

+ Plot the Beta(2, 5) distribution and begin streaming new elements each second once the + button is pressed. +

+
+ +
+ + + + +
+

5. Single Series - Color Override

+

Change the bucket base color to orange and plot the Beta(2, 2) distribution.

+
+
+ + + + + + +
+

6. Multi Series - Normal + Beta

+

+ Plot the Beta(2,5) and Normal distributions as two layers in a single heatmap. Stream elements to the plot + by pressing the button. The normal distribution layer is in blue and the beta in green. +

+
+ +
+ + + +
+

7. Multi Series Color Override

+

+ Plot the normal distribution and the Beta(2, 5) distribution overrding normal to be in red, and beta to + be in purple. +

+
+
+ + + + + + +
+

8. Range Independent Bucketing (Issue #41)

+

+ Discrete bucketing of sparse histogram values should produce similar looking graphs regardless + of numeric relation between the range of the plot and the number of buckets. +

+

Range [0, 100] with 20 buckets

+
+ +

Range [0, 100] with 45 buckets

+
+
+ + + +
+

9. Option: buckets

+
+

+ | + + + +

+
+ + + +
+

10. Option: bucketRange

+
+

+ | + + + + + +

+
+ + + +
+

11. Option: bucketPadding

+
+

+ | + + + + +

+
+ + + +
+

12. Option: cutOutliers

+
+

+ | + + +

+
+ + +
+

13. Option: opacity

+
+

+ | + +

+
+ + +
+

14. Show/Hide Layer

+
+

+ + | + +

+
+ + + diff --git a/debian/missing-sources/epoch/tests/render/real-time/line.html b/debian/missing-sources/epoch/tests/render/real-time/line.html new file mode 100644 index 0000000..3346c98 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/real-time/line.html @@ -0,0 +1,596 @@ + + + + + + + + + + + + +

Real-time Line Plot Test

+ +
    +
  1. Single Series
  2. +
  3. Single Series Single Transition
  4. +
  5. Single Seires Stream
  6. +
  7. Multi Series
  8. +
  9. Multi Series Single Transition
  10. +
  11. Multi Seires Stream
  12. +
  13. Color Override
  14. +
  15. Categorical Colors
  16. +
  17. Show/Hide Layers
  18. +
  19. Show/Hide Layers
  20. +
  21. Multiaxes
  22. +
+ + +
+

1. Single Series

+

+ Correctly render a single series plot of y = cos(x) + 1 over the range [0, 2π]. +

+
+
+ + + + +
+

2. Single Series Single Transition

+

+ Correctly render a single series plot of y = sin(x) + 1. When the button is pressed push a new data point to the chart and correctly animate/render the transiton. +

+
+

+
+ + + + + +
+

3. Single Seires Stream

+

Correctly play / pause a single series stream of values from the plot y = cos(x) + 1.

+
+

+
+ + + + +
+

4. Multi Series

+

Correctly render a multi series plot of the following functions:

+
    +
  • y = log(x+1)
  • +
  • y = 2*log(x+1)
  • +
  • y = 3*log(x+1)
  • +
+
+
+ + + + + +
+

5. Multi Series Single Transition

+

+ Correctly render a multi series plot of the following functions: +

    +
  • y = x
  • +
  • y = x1.25
  • +
  • y = x1.5
  • +
+ and correctly render/animate the transiton after pressing the "Next" button. +

+
+

+ +

+
+ + + + +
+

6. Multi Seires Stream

+

+ Correctly play / pause a multi series stream of values over the following plots: +

    +
  • x
  • +
  • x * log(x)
  • +
  • x * log2(x)
  • +
+

+
+

+
+ + + + +
+

7. Color Override

+

The first layer should pink, the second green, and the third blue.

+
+
+ + + + + + +
+

8. Categorical Colors

+

Correctly render and switch between different categorical colors. Unlike with the basic charts this doesn't occur just by switching the class name on the containing element. The CSS query engine must be purge and the plot must be manually redrawn, like so:

+Epoch.QueryCSS.purge();
+chart.draw();
+
+

+ +
+ +

+ + + + +

+
+ + + + +
+

9. Show/Hide Layers

+
+

+ + + | + +

+
+ + + +
+

10. Fixed Range

+

+ Render a single series plot of y = cos(x). Instead of automatically setting the range to [-1, 1], the range is manually set to [-2, 5]. +

+
+
+ + + + +
+

11. Multi-axes

+

+ Render a plot that uses independent axes ranges for the left and + right sides. +

+
+
+ + + + +
+

12. Multi-axes with Labeled Ranges

+

+ Render a plot that uses independent axes ranges for the left and + right sides that are associated to labels in the chart data. +

+
+
+ + + + diff --git a/debian/missing-sources/epoch/tests/render/real-time/model.html b/debian/missing-sources/epoch/tests/render/real-time/model.html new file mode 100644 index 0000000..6f53963 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/real-time/model.html @@ -0,0 +1,85 @@ + + + + + + + + + + + + +

Real-time Chart Model / Data Test

+ + +

+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/debian/missing-sources/epoch/tests/render/real-time/options.html b/debian/missing-sources/epoch/tests/render/real-time/options.html new file mode 100644 index 0000000..a2da792 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/real-time/options.html @@ -0,0 +1,299 @@ + + + + + + + + + + + + +

Real-time Chart Options and Events

+ +
    +
  1. Resize
  2. +
  3. Axes
  4. +
  5. Ticks
  6. +
  7. Tick Formats
  8. +
  9. Margins
  10. +
+ + +
+

1. Resize

+

Correctly Resize a Real-time Chart.

+
+

+ | + + + +

+
+ + + +
+

2. Axes

+
+
+ | + + + + + + +
+
+ + + +
+

3. Ticks

+
+

+ | + + +

+
+ + + +
+

4. Tick Formats

+
+

+ | + + +

+
+ + + +
+

5. Margins

+
+

+ | + + + +

+
+ + + \ No newline at end of file diff --git a/debian/missing-sources/epoch/tests/render/themes/dark.html b/debian/missing-sources/epoch/tests/render/themes/dark.html new file mode 100644 index 0000000..265ad93 --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/themes/dark.html @@ -0,0 +1,211 @@ + + + + + + + + + + + + +

Dark Theme

+ +

Category 10

+
+
+ +
+ +
+ + + + +

Category 20

+
+
+
+
+
+ +
+ +
+ + + +

Category 20b

+
+
+
+
+
+ +
+ +
+ + + +

Category 20c

+
+
+
+
+
+ +
+ +
+ + +

Chart Examples

+ +
+ + +
+ + + +
+ + +
+ + + + + + \ No newline at end of file diff --git a/debian/missing-sources/epoch/tests/render/themes/default.html b/debian/missing-sources/epoch/tests/render/themes/default.html new file mode 100644 index 0000000..9e8bd4e --- /dev/null +++ b/debian/missing-sources/epoch/tests/render/themes/default.html @@ -0,0 +1,70 @@ + + + + + + + + + + + + + +

Default Theme

+ +

Category 10

+
+
+ +

Category 20

+
+
+
+
+
+ +

Category 20b

+
+
+
+
+
+ +

Category 20c

+
+
+
+
+
+ + + + \ No newline at end of file -- cgit v1.2.3