* add feature to choose custom point style for bar legend display
* add documentation and type
* the docs are in the right place now
| [`indexAxis`](#general) | `string` | - | - | `'x'`
| [`label`](#general) | `string` | - | - | `''`
| [`order`](#general) | `number` | - | - | `0`
+| [`pointStyle`](../configuration/elements.md#point-styles) | `string`\|`Image` | Yes | False | `'circle'`
| [`xAxisID`](#general) | `string` | - | - | first x axis
| [`yAxisID`](#general) | `string` | - | - | first y axis
'categoryPercentage',
'maxBarThickness',
'minBarLength',
+ 'pointStyle'
],
interaction: {
mode: 'index'
lineJoin: undefined,
lineWidth: 10,
strokeStyle: 'green',
- pointStyle: undefined,
+ pointStyle: 'crossRot',
rotation: undefined,
datasetIndex: 2
}]);
lineJoin: undefined,
lineWidth: 10,
strokeStyle: 'green',
- pointStyle: undefined,
+ pointStyle: 'crossRot',
rotation: undefined,
datasetIndex: 2
}]);
});
});
});
-
* Set this to ensure that bars have a minimum length in pixels.
*/
minBarLength: number;
+
+ /**
+ * Point style for the legend
+ * @default 'circle;
+ */
+ pointStyle: PointStyle;
}
export interface BarControllerChartOptions {