PC crash when i use Chrome
Hello,
I have a problem when I use jqxChart with Google Chrome or Chromium ...
When I run my index.php file, my mouse is idling and my PC is very slow. I have to reboot to make it back to normal.
But when I run my index.php in Mozilla Firefox, I have no problem and my graphic display normally.
Do you know what is the problem with Chrome / Chromium?
Thank you in advance
- index.php :
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title id='Description'>jqxChart Stacked Column Series Example</title>
- <link rel="stylesheet" href="js/styles/jqx.base.css" type="text/css" />
- <script type="text/javascript" src="js/scripts/jquery-1.11.1.min.js"></script>
- <script type="text/javascript" src="js/jqxcore.js"></script>
- <script type="text/javascript" src="js/jqxdata.js"></script>
- <script type="text/javascript" src="js/jqxdraw.js"></script>
- <script type="text/javascript" src="js/jqxchart.core.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- // prepare chart data as an array
- var sampleData = [
- { Day: '01-12-14', ED: 200, PO: 300, VP: 35, VPN: 45 },
- { Day: '02-12-14', ED: 150, PO: 425, VP: 20, VPN: 55 },
- { Day: '03-12-14', ED: 250, PO: 400, VP: 35, VPN: 35 }
- ];
- // prepare jqxChart settings
- var settings = {
- title: "Test stats N2",
- description: "",
- enableAnimations: true,
- showLegend: true,
- padding: { left: 5, top: 5, right: 5, bottom: 5 },
- titlePadding: { left: 90, top: 0, right: 0, bottom: 10 },
- source: sampleData,
- xAxis:
- {
- dataField: 'Day',
- unitInterval: 1,
- axisSize: 'auto',
- tickMarks: {
- visible: true,
- interval: 1,
- color: '#BCBCBC'
- },
- gridLines: {
- visible: true,
- interval: 1,
- color: '#BCBCBC'
- }
- },
- valueAxis:
- {
- // unitInterval: 10,
- //minValue: 0,
- // maxValue: 120,
- title: { text: 'Nb de connexions' },
- labels: { horizontalAlignment: 'right' },
- tickMarks: { color: '#BCBCBC' }
- },
- colorScheme: 'scheme06',
- seriesGroups:
- [
- {
- type: 'stackedcolumn',
- columnsGapPercent: 50,
- seriesGapPercent: 0,
- series: [
- { dataField: 'ED', displayText: 'ED' },
- { dataField: 'PO', displayText: 'PO' },
- { dataField: 'VP', displayText: 'VP' },
- { dataField: 'VPN', displayText: 'VPN' }
- ]
- }
- ]
- };
- // setup the chart
- $('#chartContainer').jqxChart(settings);
- });
- </script>
- </head>
- <body class='default'>
- <div id='chartContainer' style="width:850px; height:500px;"/>
- </body>
- </html>