Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

4 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # DC-Chart
  2. <p>
  3. <img src="https://img.shields.io/badge/license-Apache%202-blue"/>
  4. <img src="https://img.shields.io/github/package-json/v/dvgis/dc-chart?color=orange&logo=github" />
  5. <img src="https://img.shields.io/npm/dw/@dvgis/dc-chart?logo=npm"/>
  6. </p>
  7. [**🇨🇳 中文**](./README_zh.md) | [**🇬🇧English**](./README.md)
  8. > DC-Chart is a product of integration of dc-sdk and Echarts. Mainly used to add statistical charts of Echarts to 3D scenes. Gis the statistical chart
  9. > [Home Page](http://dc.dvgis.cn)
  10. ```warning
  11. Tips:This SDK is JS+GIS framework package. Developers need to have some front-end technology and GIS related technology
  12. ```
  13. ## Installation
  14. > CDN
  15. ```html
  16. <!--Echarts Package-->
  17. <script src="***/echarts.min.js"></script>
  18. <!--Basic Package-->
  19. <script src="libs/dc-sdk/dc.base.min.js"></script>
  20. <!--Core Package-->
  21. <script src="libs/dc-sdk/dc.core.min.js"></script>
  22. <!--Chart Package-->
  23. <script src="libs/dc-chart/dc.chart.min.js"></script>
  24. <!--Main Style Sheet -->
  25. <link href="libs/dc-sdk/dc.core.min.css" rel="stylesheet" type="text/css" />
  26. ```
  27. > NPM / YARN
  28. ```shell
  29. yarn add echarts @dvgis/dc-sdk @dvgis/dc-plugins
  30. npm install echarts @dvgis/dc-sdk @dvgis/dc-plugins
  31. ```
  32. ```js
  33. global.echarts = require('echarts') //Echarts Package
  34. import DC from 'dvgis/dc-sdk/dist/dc.base.min' //Basic Package
  35. import DcCore from 'dvgis/dc-sdk/dist/dc.core.min' //Core Package
  36. import DcChart from 'dvgis/dc-chart/dist/dc.chart.min' //Chart Package
  37. import 'dvgis/dc-sdk/dist/dc.core.min.css' // Main Style Sheet
  38. ```
  39. ## Setting
  40. > Vue
  41. ```js
  42. // vue.config.js
  43. const path = require('path')
  44. const CopywebpackPlugin = require('copy-webpack-plugin')
  45. const dvgisDist = './node_modules/@dvgis'
  46. module.exports = {
  47. // other settings
  48. chainWebpack: config => {
  49. config.resolve.alias.set('dvgis', path.resolve(__dirname, dvgisDist))
  50. config.plugin('copy').use(CopywebpackPlugin, [
  51. [
  52. {
  53. from: path.join(dvgisDist, 'dc-sdk/dist/resources'),
  54. to: 'libs/dc-sdk/resources'
  55. }
  56. ]
  57. ])
  58. }
  59. }
  60. ```
  61. ## Start
  62. ```js
  63. DC.use(DcCore)
  64. DC.use(DcChart)
  65. DC.ready(() => {
  66. let viewer = new DC.Viewer(divId) // divId is the Id attribute value of a div node. If it is not passed in, the 3D scene cannot be initialized
  67. })
  68. ```
  69. ## Documentation
  70. [DC Api](https://resource.dvgis.cn/dc-api)
  71. [Cesium Api](https://cesium.com/docs/cesiumjs-ref-doc/)
  72. ## Demo
  73. | ![picture](http://dc.dvgis.cn/examples/images/datav/e_pm2.5.png) | ![picture](http://dc.dvgis.cn/examples/images/datav/e_pm2.5_2.png) | ![picture](http://dc.dvgis.cn/examples/images/datav/e_plane.gif) | ![picture](http://dc.dvgis.cn/examples/images/datav/e_airline.gif) |
  74. | :----------------------------------------------------------: | :-------------------------------------------------------------: | :----------------------------------------------------------: | :-------------------------------------------------------------: |
  75. | ![picture](http://dc.dvgis.cn/examples/images/datav/e_rk.gif) | ![picture](http://dc.dvgis.cn/examples/images/datav/e_qx.gif) | ![picture](http://dc.dvgis.cn/examples/images/datav/e_wl.gif) | |
  76. [More>>](http://dc.dvgis.cn/#/examples)
  77. ## Copyright statement
  78. ```warning
  79. 1. The framework is a basic platform, completely open source, which can be modified and reconstructed by any individual or institution without our authorization.
  80. 2. A series of targeted plug-ins and tools will be added later, and an appropriate amount of open source.
  81. 3. Free and permanent use by any person or institution subject to the following conditions:
  82. 1) complete package reference;
  83. 2) reserve this copyright information in the console output
  84. We reserve the right of final interpretation of this copyright information.
  85. ```
  86. ## Thanks