From 916074d342c4ef8924a8947be29441ad244d5189 Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Fri, 6 Jun 2014 08:54:43 +0900 Subject: [PATCH] Update index.html for samples --- htdocs/css/index.css | 12 + htdocs/index.html | 367 +++++++++++++++--- .../samples/{donut.html => chart_donut.html} | 0 ...{chart_arc_gauge.html => chart_gauge.html} | 0 htdocs/samples/{pie.html => chart_pie.html} | 0 .../{scatter.html => chart_scatter.html} | 0 htdocs/samples/chart_xy.html | 40 -- htdocs/samples/custom_x_scale.html | 9 + ...egion.html => data_region_timeseries.html} | 0 9 files changed, 334 insertions(+), 94 deletions(-) create mode 100644 htdocs/css/index.css rename htdocs/samples/{donut.html => chart_donut.html} (100%) rename htdocs/samples/{chart_arc_gauge.html => chart_gauge.html} (100%) rename htdocs/samples/{pie.html => chart_pie.html} (100%) rename htdocs/samples/{scatter.html => chart_scatter.html} (100%) delete mode 100644 htdocs/samples/chart_xy.html rename htdocs/samples/{timeseries_region.html => data_region_timeseries.html} (100%) diff --git a/htdocs/css/index.css b/htdocs/css/index.css new file mode 100644 index 0000000..f38c901 --- /dev/null +++ b/htdocs/css/index.css @@ -0,0 +1,12 @@ +.row { + margin-left: 8px; +} +.row a { + display: block; + text-align: left; + font-size: 1.2em; + line-height: 1.8; +} +.row h3 { + color: #777; +} \ No newline at end of file diff --git a/htdocs/index.html b/htdocs/index.html index e75bf57..6ff72e8 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -1,134 +1,393 @@ +
-

# Basic

+

# Chart Type

+ +
+
-

Timeseries Chart

-

Simple line chart with timeseries data.

-

View details »

+

Combination Chart

+ + Combination chart with ordinary data +
+
-

# Axes

+

# Axes

+
-

Specify Axis Min/Max Values

-

You can specify your own min/max values for each axis.

-

View details »

+

Axis Range

+ + Set range of axis + +
+
+

Axis Padding

+ + Set padding of axis + +
+ +
+
+
-

# Data

+

# Data

-

Column Oriented Data

-

Column-oriented data can be used as input.

-

View details »

+

Input Data

+ + Columned data + + + Rowed data + + + JSON data + + + Data from URL + + + Hide data when init +
-

Row Oriented Data

-

Row-oriented data can be used as input.

-

View details »

+

Load Data

+ + Load ordinary data + + + Load timeseries data +
-

Data from URL

-

Data from URL can be used as input.

-

View details »

+

Custom X

+ + Custom x for all data + + + Custom x for each data +
+
-

# Chart Type

+

# Components

-

Stacked Bar Chart

-

Display as Stacked Bar Chart

-

View details »

+

Region

+ + Show regions +
-

Spline Chart

-

Display as Spline Chart

-

View details »

+

Legend

+ + Show legend +
-

Area Chart

-

Display as Filled Area Chart

-

View details »

+

Tooltip

+ + Show tooltip + + + Show tooltip as each data +
+
+
+
+ +
+

# Chart Option

+
+
-

Combination Chart

-

Display as Bar Chart

-

View details »

+

Bind

+ + Specify the element binded +
+ +
+
+
-

# Interaction

+

# Interaction

Zoom

-

Zoom by mouse wheel event and slide by drag.

-

View details »

+ + Enable zoom + + + Zoom with reduction + +
+
+

Selection

+ + Select data + +
+
+
+
+ + +
+

# Other Library

+
+
+
+

RequireJS

+ + Load by RequireJS + +
+
+
+
diff --git a/htdocs/samples/donut.html b/htdocs/samples/chart_donut.html similarity index 100% rename from htdocs/samples/donut.html rename to htdocs/samples/chart_donut.html diff --git a/htdocs/samples/chart_arc_gauge.html b/htdocs/samples/chart_gauge.html similarity index 100% rename from htdocs/samples/chart_arc_gauge.html rename to htdocs/samples/chart_gauge.html diff --git a/htdocs/samples/pie.html b/htdocs/samples/chart_pie.html similarity index 100% rename from htdocs/samples/pie.html rename to htdocs/samples/chart_pie.html diff --git a/htdocs/samples/scatter.html b/htdocs/samples/chart_scatter.html similarity index 100% rename from htdocs/samples/scatter.html rename to htdocs/samples/chart_scatter.html diff --git a/htdocs/samples/chart_xy.html b/htdocs/samples/chart_xy.html deleted file mode 100644 index 8895167..0000000 --- a/htdocs/samples/chart_xy.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - -
- - - - - - diff --git a/htdocs/samples/custom_x_scale.html b/htdocs/samples/custom_x_scale.html index dbff9a7..7945ee8 100644 --- a/htdocs/samples/custom_x_scale.html +++ b/htdocs/samples/custom_x_scale.html @@ -45,6 +45,15 @@ }); }, 3000); + setTimeout(function () { + chart.load({ + columns: [ + ['x', 130, 140, 200, 300, 450, 550], + ['sample', 200, 350, 100, 200, 50, 100] + ] + }) + }, 4000); + diff --git a/htdocs/samples/timeseries_region.html b/htdocs/samples/data_region_timeseries.html similarity index 100% rename from htdocs/samples/timeseries_region.html rename to htdocs/samples/data_region_timeseries.html