{
    "componentChunkName": "component---src-templates-doc-page-jsx",
    "path": "/javascript-data-grid/integrated-charts-time-series/",
    "result": {"data":{"markdownRemark":{"htmlAst":{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This section covers how to chart time series data using Integrated Charts."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Integrated Charts supports the charting of time series data using line and area charts when a time axis is chosen instead\nof a category or numeric axis."}]},{"type":"element","tagName":"h2","properties":{"id":"time-vs-category-axis","style":"position:relative;"},"children":[{"type":"text","value":"Time vs Category Axis"},{"type":"element","tagName":"a","properties":{"href":"#time-vs-category-axis","ariaLabel":"time vs category axis permalink","className":["docs-header-icon","after"]},"children":[{"type":"element","tagName":"svg","properties":{"id":"icon","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 32 32"},"children":[{"type":"element","tagName":"path","properties":{"d":"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"},"children":[]},{"type":"element","tagName":"path","properties":{"d":"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"},"children":[]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.3.4/charts-axes/#time-axis"},"children":[{"type":"text","value":"Time Axis"}]},{"type":"text","value":" is used to plot continuous date / time values, whereas a\n"},{"type":"element","tagName":"a","properties":{"href":"/archive/29.3.4/charts-axes/#category-axis"},"children":[{"type":"text","value":"Category Axis"}]},{"type":"text","value":" is used to plot discrete values or categories."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The example below highlights the differences between time and category axes. Notice that the time axis contains all\ndays for the range of values provided, whereas the category axis only shows axis labels for the discrete values\nprovide."}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Time vs Category Axis","name":"time-vs-category","type":"generated","options":"{ \"exampleHeight\": 740, \"enterprise\": true, \"modules\": [\"clientside\", \"menu\", \"charts\"], \"extras\": [\"momentjs\"] }"},"children":[]}]},{"type":"element","tagName":"h2","properties":{"id":"time-axis-configuration","style":"position:relative;"},"children":[{"type":"text","value":"Time Axis Configuration"},{"type":"element","tagName":"a","properties":{"href":"#time-axis-configuration","ariaLabel":"time axis configuration permalink","className":["docs-header-icon","after"]},"children":[{"type":"element","tagName":"svg","properties":{"id":"icon","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 32 32"},"children":[{"type":"element","tagName":"path","properties":{"d":"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"},"children":[]},{"type":"element","tagName":"path","properties":{"d":"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"},"children":[]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Columns that contain date object values will be automatically plotted using a "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.3.4/charts-axes/#time-axis"},"children":[{"type":"text","value":"Time Axis"}]},{"type":"text","value":"\nunless it has been explicitly changed through the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartDataType"}]},{"type":"text","value":" column definition property."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Numeric timestamps in a unix format are also allowed, but the column should be explicitly configured to use a time axis\nvia "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartDataType='time'"}]},{"type":"text","value":" on the column definition."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The following snippet shows how different time series values can be configured to enable a time axis:"}]},{"type":"element","tagName":"snippet","properties":{},"children":[{"type":"text","value":"\nconst gridOptions = {\n    columnDefs: [\n        // date objects are treated as time by default\n        { field: 'someDate' },\n        { field: 'someTimestamp', chartDataType: 'time' },\n    ],\n    rowData: [\n        {\n            someDate: new Date(2019, 0, 1), // date object\n            someTimestamp: 1167609600000, // numeric timestamp (unix format)\n        },\n        // ... more rows\n    ]\n}\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Notice that no configuration is necessary for date objects but numeric timestamps and calendar date string require\nthat "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartDataType='time'"}]},{"type":"text","value":" is set on the column definitions."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The following example demonstrates how a column containing numeric timestamps can be configured to use a time axis using\nthe "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartDataType='time'"}]},{"type":"text","value":" property on the 'timestamp' column definition:"}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Time Axis Configuration","name":"time-axis-config","type":"generated","options":"{ \"exampleHeight\": 740, \"enterprise\": true, \"modules\": [\"clientside\", \"menu\", \"charts\"], \"extras\": [\"momentjs\"] }"},"children":[]}]},{"type":"element","tagName":"h2","properties":{"id":"time-axis-combination-chart","style":"position:relative;"},"children":[{"type":"text","value":"Time Axis Combination Chart"},{"type":"element","tagName":"a","properties":{"href":"#time-axis-combination-chart","ariaLabel":"time axis combination chart permalink","className":["docs-header-icon","after"]},"children":[{"type":"element","tagName":"svg","properties":{"id":"icon","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 32 32"},"children":[{"type":"element","tagName":"path","properties":{"d":"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"},"children":[]},{"type":"element","tagName":"path","properties":{"d":"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"},"children":[]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A time axis can also be used in combination charts as shown in the following example."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"For more details on how to configure a combination chart, see the "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.3.4/integrated-charts-api-range-chart/#combination-charts"},"children":[{"type":"text","value":"Range Chart API example"}]},{"type":"text","value":"."}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Time Axis Combination Chart","name":"time-combination-chart","type":"generated","options":"{ \"enterprise\": true, \"modules\": [\"clientside\", \"menu\", \"charts\", \"rowgrouping\"], \"exampleHeight\": 790, \"extras\": [\"momentjs\"] }"},"children":[]}]},{"type":"element","tagName":"h2","properties":{"id":"next-up","style":"position:relative;"},"children":[{"type":"text","value":"Next Up"},{"type":"element","tagName":"a","properties":{"href":"#next-up","ariaLabel":"next up permalink","className":["docs-header-icon","after"]},"children":[{"type":"element","tagName":"svg","properties":{"id":"icon","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 32 32"},"children":[{"type":"element","tagName":"path","properties":{"d":"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"},"children":[]},{"type":"element","tagName":"path","properties":{"d":"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"},"children":[]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Continue to the next section to learn about: "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.3.4/integrated-charts-api-save-restore-charts/"},"children":[{"type":"text","value":"Save / Restore Charts"}]},{"type":"text","value":"."}]}]},"frontmatter":{"title":"Time Series","version":null,"enterprise":true,"sideMenu":null,"description":null},"headings":[{"id":"time-vs-category-axis","depth":2,"value":"Time vs Category Axis"},{"id":"time-axis-configuration","depth":2,"value":"Time Axis Configuration"},{"id":"time-axis-combination-chart","depth":2,"value":"Time Axis Combination Chart"},{"id":"next-up","depth":2,"value":"Next Up"}]}},"pageContext":{"frameworks":["javascript","react","angular","vue"],"framework":"javascript","srcPath":"/integrated-charts-time-series","pageName":"integrated-charts-time-series"}},
    "staticQueryHashes": ["1766026005","699667431","940729948"]}