|
|
Data must be bound to the Time Series Chart.
|
|
Property
|
JavaScript
|
Type
|
Description
|
|---|---|---|---|
|
X-axis Field
|
labelsField
|
string
|
The data that displays for the X-axis of a chart. Manually enter the field name. For example, type “Name.”
|
|
Y-axis Field
|
valuesField
|
string
|
The data that displays for the Y-axis of a chart. Manually enter the field name. For example, type “User.”
|
|
Minimum Steps Required for Use
|
What It Looks Like
|
|---|---|
|
1. Drag and drop a Time Series Charts widget onto the canvas.
2. From the Data pane, search for an entity with a service that returns historical data.
3. Once the service has been added, drag and drop All Items onto the widget and select Data on the Select Binding Target window.
4. Select a property from the X-axis Field drop-down. In the example, we selected Speed.
5. Select a property from the Y-axis Field drop-down. In the example, we selected RPM.
|
![]() |

|
|
Keep in mind that it’s best to give your classes unique names so they do not conflict with other classes or OOTB properties.
|
|
Example
|
What It Looks Like
|
|---|---|
|
Enter the following in the JavaScript editor:
// Chart Legends |
![]() |
|
Enter the following in the JavaScript editor:
1. Enter the following in the JavaScript editor:
// Time Series lines 2. Add the following class in the Application editor:
.ptc-TimeSeries {
3. Enter the new class in the Class field of the time series chart.
|
![]() |
|
1. Enter the following in the JavaScript editor:
Chart.defaults.global.legend.position="bottom"; 2. Add the following class in the Application editor:
.ptc-TimeSeries {
3. Enter the new class in the Class field of the time series chart.
|
![]() |