index.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!-- 必须强制指定页面编码为 UTF-8 -->
  5. <meta charset="utf-8">
  6. <!-- Demo 的简要说明,必须要填写 -->
  7. <meta name="description" content="Kity 数据可视化 Demo">
  8. <!-- Demo 的作者,建议填写 -->
  9. <meta name="author" content="kity@baidu.com">
  10. <!-- Demo 的标题,必须填写 -->
  11. <title>数据可视化</title>
  12. <script src="../../dist/kity.min.js"></script>
  13. <script src="lib/quo.js"></script>
  14. <script src="charts/pie.js"></script>
  15. <script src="charts/view.js"></script>
  16. <script src="charts/scatter-diagram.js"></script>
  17. <script src="charts/line-chart.js"></script>
  18. <script src="charts/chinamap.js"></script>
  19. <script src="charts/ubp-map.js"></script>
  20. <script src="charts/poly-chart.js"></script>
  21. <script src="charts/gender-chart.js"></script>
  22. <script src="test/data.test.js"></script>
  23. <link href="styles.css" rel="stylesheet" type="text/css">
  24. <meta http-equiv="content-type" content="text/html;charset=utf-8">
  25. <!--允许全屏-->
  26. <meta content="yes" name="apple-mobile-web-app-capable"/>
  27. <meta content="yes" name="apple-touch-fullscreen"/>
  28. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  29. <!--禁止电话号码和邮箱识别-->
  30. <meta content="telephone=no,email=no" name="format-detection"/>
  31. <!--TODO:添加一个ios用的icon-->
  32. <link rel="apple-touch-icon-precomposed" href="favicon.png" />
  33. <link rel="apple-touch-icon" href="favicon.png" />
  34. <link rel="Shortcut Icon" href="favicon-precomposed.png" type="image/x-icon"/>
  35. </head>
  36. <body>
  37. <div class="chart-area-min" id="c1">
  38. </div>
  39. <div class="chart-area-min" id="c2">
  40. </div>
  41. <div class="chart-area-min" id="c3">
  42. </div>
  43. <div class="chart-area-min">
  44. <div id="c4" class="quarter"></div>
  45. <div id="c5" class="quarter"></div>
  46. <div id="c6" class="quarter"></div>
  47. <div id="c7" class="quarter"></div>
  48. </div>
  49. </body>
  50. <script>
  51. var scatter = new KCScatterDiagram(dScatter,"c1");
  52. var line = new KCLineChart(dLine,"c2");
  53. var ubpmap = new KCUbpMap(dMap,"c3");
  54. var genderchart = new KCGenderChart(genderData,"c4");
  55. var genderchart = new KCGenderChart(genderData2,"c5");
  56. var poly = new KCPolyChart(dPoly, "c6", "haier");
  57. var poly2 = new KCPolyChart(dPoly, "c7", "siemens");
  58. </script>
  59. </html>