]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Document the point radius setting 2233/head
authorJamie Penney <jamie@jamiepenney.co.nz>
Sat, 9 Apr 2016 23:15:55 +0000 (11:15 +1200)
committerJamie Penney <jamie@jamiepenney.co.nz>
Sat, 9 Apr 2016 23:15:55 +0000 (11:15 +1200)
docs/02-Line-Chart.md

index 6f4f6b85854d2c2c8dc632cb10741afaa575dabc..6cdcd419cc083745cf7d37c27896f21471d1f7bb 100644 (file)
@@ -83,6 +83,9 @@ var data = {
                        // Tension - bezier curve tension of the line. Set to 0 to draw straight Wlines connecting points
                        tension: 0.1,
 
+                       // Number - the pixel size of the point shape. Can be set to 0 to not render a circle over the point
+                       radius: 1,
+
                        // The actual data
                        data: [65, 59, 80, 81, 56, 55, 40],
 
@@ -123,6 +126,9 @@ Name | Type | Default | Description
 showLines | Boolean | true | If false, the lines between points are not drawn
 stacked | Boolean | false | If true, lines stack on top of each other along the y axis.
 *hover*.mode | String | "label" | Label's hover mode. "label" is used since the x axis displays data by the index in the dataset.
+elements | - | - | -
+*elements*.point | - | - | -
+*elements.point*.radius | Number | `3` | Defines the size of the Point shape. Can be set to zero to skip rendering a point.
 scales | - | - | -
 *scales*.xAxes | Array | `[{type:"category","id":"x-axis-1"}]` | Defines all of the x axes used in the chart. See the [scale documentation](#getting-started-scales) for details on the available options.
 *Options for xAxes* | | |