Git Product home page Git Product logo

echarts-based-on-react's Introduction

Echarts-based-on-React

项目运行

1.git clone Project Code:

$ git clone https://github.com/ZhiRongYuan/Echarts-based-on-React.git

2.Entry Project Path

cd Echarts-based-on-React

3.Installation dependent packet

npm install

4.run project and view

npm run start

访问 http://localhost:8080(start后 会自动打开浏览器访问)

通过 npm run build 编译生成的dist文件夹放在服务器即可正常访问

项目介绍

常见问题1

首先,我们需要引入echarts, 以及 echarts的地图扩展 bmap (地图扩展,这个很关键,如果不引入,程序运行后会出现“unknown coordinateSystem bmap”的错误)。 import echarts from 'echarts'; import bmap from 'echarts/extension/bmap/bmap';

常见问题2

地图组件构建完毕,然而,并不能显示地图,提示“BMap api is not loaded”。 什么原因呢? 这是因为 调用百度地图API,需要申请密钥(ak)才能使用,当申请完后,需要添加一个JavaScript到index.html文件中。 可在html文件中引入<script src="http://api.map.baidu.com/api?v=2.0&ak=ZUONbpqGBsYGXNIYHicvbAbM"></script>

echarts-based-on-react's People

Contributors

zhirongyuan avatar

Watchers

James Cloos avatar zilong.zhou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.