ZoomCharts Documentation
FacetChart.settings.info
Info popup when hovering over columns or lines. Content returned in a form of html and is relevant to context of series hovered.
Properties
Advanced settings relevant to info popup appearance.
Properties
Create custom info contents to display in info popup.
See also
- Example: TimeChart info popup
Parameters
Data for the info popup
The configuration of the series object currently under the cursor
Properties
Calculate the series color that would normally be used
Parameters
Return value
Calculate the text shadow that would normally be used
Parameters
Return value
Return value
HTML code that will be displayed in the info popup instead of the default.
Controls how the selection for the info popup is created and what data is displayed.
Valid values:- stack - all stacks for the minimum time period (for example, multiple columns for the same day) are selected when hovering.
- value - only a single stack (for example, a column) is selected when hovering.
- auto - acts as
stack
when hovering over the empty area butvalue
if the bar/line is directly under the pointer.
Specifies if the default header should be included. If set to false
, the contentsFunction
should be used to return the header as well.
Whether to show only the series under cursor in info popup. If scope
is set to value
then the info popup will be empty unless the pointer
hovers over the value bar/line.
Function to determine what order the series are displayed in. indexA and indexB give the order the series were originally specified in.
Parameters
Return value
List of aggregations that will be shown in the info popup for each series. If none are specified, info popup displays the aggregation that is specified in the series data configuration. Available aggregations: sum (default), count, first, last, min, max, avg, change
Valid values:- sum - Default aggregation.The sum of data values
- count - The count of data values
- first - The first one of data values
- last - The last one of data values
- min - The min of data values
- max - The max of data values
- avg - The average of data values
- change - The difference between first and last
Custom containing div for the info popup
Show/hide info popup
Specifies the position of the info popup.
Values:
inside
- Displays the info popup inside the chart area right below the toolbars. This is the default behavior which is well suited for larger charts.outside
- Displays the info popup above the chart area. This mode is intended for very small charts where the info popup would overlap the whole chart.
See also
- Example - minimized TimeChart
Whether to show the info popup at the data point itself
Whether to show series with no data in hovered time period.
Whether to show series with null data in the hovered time period.
Whether to show series with data equal to zero in hovered time period.
Specifies if the value label render the stacked value (the sum of all values below it) or just the individual value of the particular series.
Default value null
means that the stacked value is used unless the
stack type is set to based
.
Prepare custom format values to display in info popup.
See also
- Example: TimeChart info popup
Parameters
object containing {sum, min, max, first, last, count, avg, change}
series object for the value
Return value
HTML text to place as the value.