Custom Elements
Show Demo List
|
|
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Custom Element Chart ColorBands X-Axis</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <meta name="description" content="This is an example of Custom Element Chart X-axis color bands." /> <link rel="stylesheet" href="../jqwidgets/styles/jqx.base.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../scripts/demos.js"></script> <script> var source = { datatype: 'tsv', datafields: [ { name: 'Year' }, { name: 'Northeast' }, { name: 'South' }, { name: 'Midwest' }, { name: 'West' }, { name: 'UnitedStates' } ], url: '../sampledata/us_homeownership_rate.csv' }; var dataAdapter = new jqx.dataAdapter(source); var recessions = [ { from: 1969.91, to: 1970.83 }, { from: 1973.83, to: 1975.25 }, { from: 1980.00, to: 1980.58 }, { from: 1981.58, to: 1982.83 }, { from: 1990.58, to: 1991.25 }, { from: 2001.25, to: 2001.83 }, { from: 2007.91, to: 2009.50 } ]; var bands = []; for (var i = 0; i < recessions.length; i++) bands.push({ minValue: recessions[i].from, maxValue: recessions[i].to, fillColor: 'red', opacity: 0.2 }); JQXElements.settings['chartSettings'] = { title: 'US Homeownership rate & recessions (1965-2018)', description: '(sources: US Census bureau, Wikipedia)', enableAnimations: true, showLegend: true, padding: { left: 5, top: 5, right: 10, bottom: 5 }, titlePadding: { left: 0, top: 0, right: 0, bottom: 10 }, source: dataAdapter, xAxis: { dataField: 'Year', tickMarks: { visible: true, interval: 1, color: '#BCBCBC' }, labels: { angle: -90 }, unitInterval: 1, //maxValue: '1970', flip: false, bands: bands // attach the color bands to the xAxis }, valueAxis: { title: { text: 'Homeownership rate<br>' }, labels: { formatSettings: { sufix: '%' } }, bands: [ // { minValue: 60, maxValue: 63 } ], flip: false }, colorScheme: 'scheme03', seriesGroups: [ { type: 'line', series: [ { dataField: 'Northeast', displayText: 'NorthEast' }, { dataField: 'South' }, { dataField: 'Midwest', displayText: 'MidWest' }, { dataField: 'West' }, { dataField: 'UnitedStates', displayText: 'United States' }, ] } ] }; </script> </head> <body> <jqx-chart settings='chartSettings' style="width: 850px; height: 500px;"><jqx-chart> <div class="example-description"> <br /> <h2>Description</h2> <br /> This is an example of Custom Element chart x-axis color bands. You can see how to attach the color bands to the xAxis. The x axis labels are rotated -90 degrees. </div> </body> </html>
title | string | Chart title | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"My Title", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
description | string | Description | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"My Description",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
source | object | [] | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
showBorderLine | boolean | true | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",showBorderLine:false } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
borderLineColor | string | #888888 | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light", borderLineColor:"'#111888'" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
borderLineWidth | number | 1 | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",borderLineWidth:3 } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
backgroundColor | string | #FFFFFF | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light", backgroundColor:"#FFFFFF" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
backgroundImage | string | '' | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light", backgroundImage:"../images/chart_background.jpg" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
showLegend | boolean | true | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
legendLayout | object | {} | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light", legendLayout:legendLayout } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
categoryAxis | object | {} | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light", categoryAxis:"categoryAxis" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
padding | object | {left: 5, top: 5, right: 5, bottom: 5} | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
titlePadding | object | {left: 2, top: 2, right: 2, bottom: 2} | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
colorScheme | string | scheme01 | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme03", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
greyScale | boolean | false | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",greyScale:true } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
showToolTips | boolean | true | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",showToolTips:false } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
toolTipShowDelay | number | 500 | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",toolTipShowDelay:300 } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
toolTipHideDelay | number | 4000 | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",toolTipHideDelay:300 } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
toolTipMoveDuration | number | 300 | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",toolTipMoveDuration:200 } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
drawBefore | function | null | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light", drawBefore:"drawBefore" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
draw | function | null | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light", draw:"draw" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
rtl | boolean | false | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",rtl:true } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
enableCrosshairs | boolean | false | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",enableCrosshairs:false } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
crosshairsColor | string | #888888 | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light", crosshairsColor:"'#111888'" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
crosshairsDashStyle | string | 2,2 | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light", crosshairsDashStyle:"'1,1'" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
crosshairsLineWidth | number | 1 | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",crosshairsDashStyle:true,crosshairsLineWidth:2 } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
columnSeriesOverlap | boolean | false | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",columnSeriesOverlap:true } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
enabled | boolean | true | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",enabled:false } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
enableAnimations | boolean | true | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:false, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
animationDuration | number | 500 | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",animationDuration:1500 } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
enableAxisTextAnimation | boolean | false | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light",enableAxisTextAnimation:true } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
renderEngine | string | auto | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light", renderEngine:"HTML5" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
xAxis | object | null | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
valueAxis | object | null | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
seriesGroups | array | null | ||||||||||||||||||
Sets or gets the <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
Events |
||||||||||||||||||||
toggle | Event | |||||||||||||||||||
Code examples
Bind to the
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } window.onload = function() { document.querySelector("jqx-chart").addEventListener("toggle", function(event) { // Your code here. }); }; </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
click | Event | |||||||||||||||||||
Code examples
Bind to the
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } window.onload = function() { document.querySelector("jqx-chart").addEventListener("click", function(event) { // Your code here. }); }; </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
mouseOver | Event | |||||||||||||||||||
Code examples
Bind to the
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } window.onload = function() { document.querySelector("jqx-chart").addEventListener("mouseOver", function(event) { // Your code here. }); }; </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
mouseOut | Event | |||||||||||||||||||
Code examples
Bind to the
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } window.onload = function() { document.querySelector("jqx-chart").addEventListener("mouseOut", function(event) { // Your code here. }); }; </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
refreshBegin | Event | |||||||||||||||||||
Code examples
Bind to the
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } window.onload = function() { document.querySelector("jqx-chart").addEventListener("refreshBegin", function(event) { // Your code here. }); }; </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
refreshEnd | Event | |||||||||||||||||||
Code examples
Bind to the
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } window.onload = function() { document.querySelector("jqx-chart").addEventListener("refreshEnd", function(event) { // Your code here. }); }; </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
rangeSelectionChanging | Event | |||||||||||||||||||
Code examples
Bind to the
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } window.onload = function() { document.querySelector("jqx-chart").addEventListener("rangeSelectionChanging", function(event) { // Your code here. }); }; </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
rangeSelectionChanged | Event | |||||||||||||||||||
Code examples
Bind to the
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { title:"Top 5 most populated countries", description:"Statistics for 2018",showLegend:true,enableAnimations:true, padding:padding, titlePadding:titlePadding, source:source, xAxis:xAxis, valueAxis:valueAxis, colorScheme:"scheme01", seriesGroups:seriesGroups, theme:"light" } window.onload = function() { document.querySelector("jqx-chart").addEventListener("rangeSelectionChanged", function(event) { // Your code here. }); }; </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
Methods |
||||||||||||||||||||
getInstance | Method | |||||||||||||||||||
Object <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { var result = document.querySelector("jqx-chart").getInstance(); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
refresh | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").refresh(); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
update | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").update(); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
destroy | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").destroy(); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
addColorScheme | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").addColorScheme('scheme99',['#722694', '#AA4643', '#89A54E', '#71588F', '#4198AF']); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
removeColorScheme | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").removeColorScheme('scheme01'); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
getItemsCount | Method | |||||||||||||||||||
Number <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").getItemsCount(0,1,0); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
getItemCoord | Method | |||||||||||||||||||
Object <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").getItemCoord(0,1,0); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
getXAxisRect | Method | |||||||||||||||||||
Object <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").getXAxisRect(0); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
getXAxisLabels | Method | |||||||||||||||||||
Array <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").getXAxisLabels(0); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
getValueAxisRect | Method | |||||||||||||||||||
Object <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").getValueAxisRect(0); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
getValueAxisLabels | Method | |||||||||||||||||||
Array <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").getValueAxisLabels(0); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
getColorScheme | Method | |||||||||||||||||||
Array <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").getColorScheme('scheme01'); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
hideSerie | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").hideSerie(0,1,0); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
showSerie | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").showSerie(0,1,0); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
hideToolTip | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").hideToolTip(100); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
showToolTip | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").showToolTip(0,0,0,100,100); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
saveAsJPEG | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").saveAsJPEG('chartImage.jpeg','http://myServer.com'); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
saveAsPNG | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").saveAsPNG('chartImage.png','http://myServer.com'); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
saveAsPDF | Method | |||||||||||||||||||
void <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").saveAsPDF('chartImage.pdf','http://myServer.com'); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
getXAxisValue | Method | |||||||||||||||||||
Object <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").getXAxisValue(10,0); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |
||||||||||||||||||||
getValueAxisValue | Method | |||||||||||||||||||
Object <!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Chart Custom Element</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <link rel="stylesheet" href="../jqwidgets/styles/site.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdraw.js"></script> <script type="text/javascript" src="../jqwidgets/jqxchart.core.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script> var padding = { left: 20, top: 5, right: 20, bottom: 5 }; var titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; var source = [ { Country: 'China', Population: 1347350000, Percent: 19.18 }, { Country: 'India', Population: 1210193422, Percent: 17.22 }, { Country: 'USA', Population: 313912000, Percent: 4.47 }, { Country: 'Indonesia', Population: 237641326, Percent: 3.38 }, { Country: 'Brazil', Population: 192376496, Percent: 2.74 } ]; var xAxis = { dataField: 'Country', gridLines: { visible: true }, flip: false }; var valueAxis = { flip: true, labels: { visible: true, formatFunction: function (value) { return parseInt(value / 1000000); } } }; var legendLayout = { left: 500, top: 140, width: 300, height: 200, flow: 'vertical' } var seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [ { dataField: 'Population', displayText: 'Population (millions)' } ] } ]; JQXElements.settings["chartSettings"] = { } window.onload = function() { document.querySelector("jqx-chart").getValueAxisValue(10,0); } </script> </head> <body> <jqx-chart settings="chartSettings"></jqx-chart> </body> </html> |