App.tsx
Make sure
QuillProvider
is a parent of the Chart
component.Automatically fetch data by id
If you know the id of the chart you would like to display, you can pass in the reportId to the Chart component and it will load and display the data for that chart.Props
The chart id. The most usage is through a detail page built to navigate from
the dashboard - using the onClick callback to get the reportId, and
navigating to a route (say, reports/:id) where the url param is passed in as
the reportId. For a standalone table, you can find the reportId in the Quill
BI Platform and pass it in directly.When config is passed, the chart will not refetch the given report and will
instead simply render the report it was given.
A
config
must be passed if reportId
is not present.A list of color strings used to color the chart.For example, a pie chart would use the colors for each section and a bar
chart would use the colors for each bar.
Whether to show animations on render complete.
Whether to hide the x axis.
Whether to hide the y axis.
Whether to hide the cartesian grid lines.
Whether the date range filter should be hidden.
Whether to hide the horizontal cartesian grid lines.
Whether to hide the vertical cartesian grid lines.
Whether to hide the all but the first of the X-Axis ticks.
Whether the cartesian grid lines show as dashed or solid.
The color of cartesian grid lines.
Whether the comparison range shows as dashed for date comparison line charts
(as opposed to the default solid line).
An optional function that takes a report and theme and returns a map of keys
used in that report to the colors they should use.The color values support RGB hexcodes and CSS color literals.
ColorMapType
Styles the top-level container of the Chart.This can be useful for TailwindCSS-style classname strings.
The CSS styles that wrap the chart.