{
    "componentChunkName": "component---src-templates-doc-page-jsx",
    "path": "/angular-data-grid/integrated-charts-api-range-chart/",
    "result": {"data":{"markdownRemark":{"htmlAst":{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This section shows how Range Charts can be created via the Grid API."}]},{"type":"element","tagName":"h2","properties":{"id":"creating-range-charts","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#creating-range-charts","ariaLabel":"creating range charts permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Creating Range Charts"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Range Charts can be created through "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"gridApi.createRangeChart()"}]},{"type":"text","value":" as shown below:"}]},{"type":"element","tagName":"snippet","properties":{},"children":[{"type":"text","value":"\ngridOptions.api.createRangeChart({\n    chartType: 'groupedColumn',\n    cellRange: {\n        rowStartIndex: 0,\n        rowEndIndex: 4,\n        columns: ['country', 'gold', 'silver'],\n    },\n    // other options...\n});\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The snippet above creates a Range Chart with the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"groupedColumn"}]},{"type":"text","value":" chart type using data from the first 4 and the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"country"}]},{"type":"text","value":",\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"gold"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"silver"}]},{"type":"text","value":" columns. For a full list of options see "},{"type":"element","tagName":"a","properties":{"href":"/archive/27.3.0/integrated-charts-api-range-chart/#range-chart-api"},"children":[{"type":"text","value":"Range Chart API"}]},{"type":"text","value":"."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The following example demonstrates how Range Charts can be created programmatically via "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"gridApi.createRangeChart()"}]},{"type":"text","value":". Note the following:"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Clicking "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"'Top 5 Medal Winners'"}]},{"type":"text","value":" will chart the first five rows of Gold and Silver medals by Country."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Clicking "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"'Bronze Medals by Country'"}]},{"type":"text","value":" will chart Bronze by Country using all rows (the provided cell range does not specify rows)."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Note the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"'Bronze Medals by Country'"}]},{"type":"text","value":" chart is unlinked from the grid as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartUnlinked=true"}]},{"type":"text","value":". Notice that sorting in the grid does not affect the chart and there is no chart range in the grid."}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Charts in Grid Popup Window","name":"chart-api","type":"generated","options":"{ \"enterprise\": true, \"modules\": [\"clientside\", \"menu\", \"charts\"] }"},"children":[]}]},{"type":"element","tagName":"h2","properties":{"id":"range-chart-dashboard","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#range-chart-dashboard","ariaLabel":"range chart dashboard permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Range Chart Dashboard"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The following example passes a "},{"type":"element","tagName":"a","properties":{"href":"/archive/27.3.0/integrated-charts-container/"},"children":[{"type":"text","value":"Chart Container"}]},{"type":"text","value":" to the API to place the chart in a\nlocation other than the grid's popup window. Note the following:"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The charts are placed in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"div"}]},{"type":"text","value":" elements outside the grid."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The two pie charts are showing aggregations rather than charting individual rows."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Clicking on a chart highlights the range in the grid for which the chart is based."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The bar chart is sensitive to changes in the rows. For example if you sort, the chart updates to always chart the first five rows."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"All data is editable in the grid. Changes to the grid data is reflected in the charts."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The two pie charts have legends beneath. This is configured in the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartThemeOverrides"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Charts in Dashboard","name":"dashboard","type":"generated","options":"{ \"enterprise\": true, \"modules\": [\"clientside\", \"menu\", \"charts\", \"rowgrouping\"], \"exampleHeight\": 700 }"},"children":[]}]},{"type":"element","tagName":"h2","properties":{"id":"hiding-chart-ranges","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#hiding-chart-ranges","ariaLabel":"hiding chart ranges permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Hiding Chart Ranges"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In some cases it may be desirable to hide the chart ranges in the grid, see "},{"type":"element","tagName":"a","properties":{"href":"/archive/27.3.0/integrated-charts-api-range-chart/#example-combination-chart"},"children":[{"type":"text","value":"Combination Charts"}]},{"type":"text","value":"."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"To hide the chart ranges simply enable "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"suppressChartRanges=true"}]},{"type":"text","value":" on the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ChartRangeParams"}]},{"type":"text","value":"."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"For more details refer to "},{"type":"element","tagName":"a","properties":{"href":"/archive/27.3.0/integrated-charts-api-range-chart/#range-chart-api"},"children":[{"type":"text","value":"Range Chart API"}]},{"type":"text","value":"."}]},{"type":"element","tagName":"h2","properties":{"id":"combination-charts","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#combination-charts","ariaLabel":"combination charts permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Combination Charts"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"It is possible to create the following combination chart types via "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"gridApi.createRangeChart()"}]},{"type":"text","value":":"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Column & Line ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartType: 'columnLineCombo'"}]},{"type":"text","value":")"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Area & Column ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartType: 'areaColumnCombo'"}]},{"type":"text","value":")"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Custom Combination ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartType: 'customCombo'"}]},{"type":"text","value":")"}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"When the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"customCombo"}]},{"type":"text","value":" chart type is specified a new "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"CreateRangeChartParams.seriesChartTypes"}]},{"type":"text","value":" must also be supplied.\nAlso note that when "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seriesChartTypes"}]},{"type":"text","value":" is present a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"customCombo"}]},{"type":"text","value":" chart type is assumed, regardless of which "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartType"}]},{"type":"text","value":"\nis supplied."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seriesChartTypes"}]},{"type":"text","value":" property accepts an array of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"SeriesChartType"}]},{"type":"text","value":" objects as shown below:"}]},{"type":"element","tagName":"snippet","properties":{},"children":[{"type":"text","value":"\napi.createRangeChart({\n    chartType: 'customCombo',\n    cellRange: {\n      columns: ['month', 'rain', 'pressure', 'temp'],\n    }, \n    seriesChartTypes: [\n      { colId: 'rain', chartType: 'groupedColumn', secondaryAxis: false },\n      { colId: 'pressure', chartType: 'line', secondaryAxis: true },\n      { colId: 'temp', chartType: 'line', secondaryAxis: true }\n    ], \n    aggFunc: 'sum',\n  });\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The following series chart types are supported with combination charts:"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Line ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartType: 'line'"}]},{"type":"text","value":")"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Area ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartType: 'Area'"}]},{"type":"text","value":")"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Stacked Area ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartType: 'stackedArea'"}]},{"type":"text","value":")"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Grouped Column ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartType: 'groupedColumn'"}]},{"type":"text","value":")"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Stacked Column ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartType: 'stackedColumn'"}]},{"type":"text","value":")"}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Note that only "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"line"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"area"}]},{"type":"text","value":" series chart types can be plotted against a secondary axis."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The following example demonstrates the above configuration, note the following:"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The 'Rain' series uses a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"groupedColumn"}]},{"type":"text","value":" chart type and is plotted against the primary Y axis ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"secondaryAxis=false"}]},{"type":"text","value":")"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"'Pressure' and 'Temp' use a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"line"}]},{"type":"text","value":" chart type and are plotted against separate secondary Y axes ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"secondaryAxis=true"}]},{"type":"text","value":")"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Values are aggregated by the 'Month' category by setting "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"aggFunc: 'sum'"}]},{"type":"text","value":" "}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Chart Ranges are hidden using "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"suppressChartRanges=true"}]}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Combination Chart","name":"combination-chart","type":"generated","options":"{ \"enterprise\": true, \"modules\": [\"clientside\", \"menu\", \"charts\", \"rowgrouping\"], \"exampleHeight\": 790 }"},"children":[]}]},{"type":"element","tagName":"h2","properties":{"id":"range-chart-api","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#range-chart-api","ariaLabel":"range chart api permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Range Chart API"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Range Charts can be created programmatically using:"}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"api-documentation","properties":{"source":"grid-api/api.json","section":"charts","names":"[\"createRangeChart\"]"},"children":[]}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"interface-documentation","properties":{"interfacename":"CreateRangeChartParams","overridesrc":"integrated-charts-api-range-chart/resources/chart-api.json"},"children":[]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The API returns a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ChartRef"}]},{"type":"text","value":" object when a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"chartContainer"}]},{"type":"text","value":" is provided. This is the same structure\nthat is provided to the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"createChartContainer(chartRef)"}]},{"type":"text","value":" callback. The "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ChartRef"}]},{"type":"text","value":" provides the application\nwith the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"destroyChart()"}]},{"type":"text","value":" method that is required when the application wants to dispose the chart."}]},{"type":"element","tagName":"h2","properties":{"id":"next-up","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#next-up","ariaLabel":"next up permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Next Up"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Continue to the next section to learn about the: "},{"type":"element","tagName":"a","properties":{"href":"/archive/27.3.0/integrated-charts-api-pivot-chart/"},"children":[{"type":"text","value":"Pivot Chart API"}]},{"type":"text","value":"."}]}]},"frontmatter":{"title":"Range Chart API","version":null,"enterprise":true,"description":null},"headings":[{"id":"creating-range-charts","depth":2,"value":"Creating Range Charts"},{"id":"range-chart-dashboard","depth":2,"value":"Range Chart Dashboard"},{"id":"hiding-chart-ranges","depth":2,"value":"Hiding Chart Ranges"},{"id":"combination-charts","depth":2,"value":"Combination Charts"},{"id":"range-chart-api","depth":2,"value":"Range Chart API"},{"id":"next-up","depth":2,"value":"Next Up"}]}},"pageContext":{"frameworks":["javascript","angular","react","vue"],"framework":"angular","srcPath":"/integrated-charts-api-range-chart","pageName":"integrated-charts-api-range-chart"}},
    "staticQueryHashes": ["1766026005","3577950178","699667431"]}