]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Allow to configure X and Y axis ID in TS for bubble charts (#10739)
authorJacco van den Berg <jaccoberg2281@gmail.com>
Thu, 6 Oct 2022 19:41:51 +0000 (21:41 +0200)
committerGitHub <noreply@github.com>
Thu, 6 Oct 2022 19:41:51 +0000 (22:41 +0300)
* Update namespace

* Allow for x and y axisId to be passed to bubbledataset controller

types/index.d.ts

index 0c5f64c209db3941d973fa8641d7f1fe7ec93197..7154257cabdd25e241b514168d6e0d3dd366cddb 100644 (file)
@@ -157,7 +157,16 @@ export declare const BarController: ChartComponent & {
 export interface BubbleControllerDatasetOptions
   extends ControllerDatasetOptions,
   ScriptableAndArrayOptions<PointOptions, ScriptableContext<'bubble'>>,
-  ScriptableAndArrayOptions<PointHoverOptions, ScriptableContext<'bubble'>> {}
+  ScriptableAndArrayOptions<PointHoverOptions, ScriptableContext<'bubble'>> {
+  /**
+   * The ID of the x axis to plot this dataset on.
+   */
+  xAxisID: string;
+  /**
+   * The ID of the y axis to plot this dataset on.
+   */
+  yAxisID: string;
+}
 
 export interface BubbleDataPoint extends Point {
   /**