Update Queries with Axis Labels or Pickers
Axis Labels or Axis Pickers are Composer native controls that can be added to charts to provide a way for users to change query parameters dynamically. Chart developers can these controls by calling the method controller.createaAxisLabel. The createAxislabel method takes an object as its only argument with the following properties:
| Option | Description |
|---|---|
|
Name of the query variable.
Note:
Use the data accessor’s
getName method to avoid hardcoding variable names.
|
|
Location of the axis label in the chart widget. Valid options: |
|
Orientation of the axis label text. Valid options: |
Example:
controller.createAxisLabel({
picks: 'Group By',
position: 'bottom',
orientation: 'horizontal',
});
controller.createAxisLabel({
picks: 'Size',
position: 'bottom',
orientation: 'horizontal',
});
The above example adds two axis pickers to the chart that provide users with the ability to change the fields used for the Group By and Size query variables.
Comments
0 comments
Please sign in to leave a comment.