C3 AI Console Reference: Visualizing Data Using the Console
The Console allows quick and easy visualization of plots of data using the global function c3Viz.
Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
data | Object | Mandatory | Data results to be displayed |
Example
In the Console, create a Timeseries Type and call the randomTimeseries method that will generate a timeseries with random values using specified start and end. The randomTimeseries will return a timeseries with values uniformly distributed between the lower and upper limits.
JavaScript
c3Viz(
Timeseries.randomTimeseries(TimeseriesInfo.from('2021-01-01', '2022-01-01', 'DAY'),
Timeseries.RandomSpec.make({
process: 'WALK',
initial: 60,
origin: 5,
bound: 9999,
deltaMax: 5,
unit: {
symbol: '$'
}
})
)
);The c3Viz command processes the output and displays the results in a visualization.