当前位置: 首页 > news >正文

一个网站项目多少钱简单的页面

一个网站项目多少钱,简单的页面,广告开户南京seo,怎么看网站制作[vue]Echart使用手册 使用环境Echart的使用Echart所有组件和图表类型Echart 使用方法 使用环境 之前是在JQuery阶段使用Echart#xff0c;直接引入Echart的js文件即可#xff0c;现在是在vue中使用,不仅仅时echarts包#xff0c;还需要安装vue-echarts#xff1a; … [vue]Echart使用手册 使用环境Echart的使用Echart所有组件和图表类型Echart 使用方法 使用环境 之前是在JQuery阶段使用Echart直接引入Echart的js文件即可现在是在vue中使用,不仅仅时echarts包还需要安装vue-echarts vue: ^3.3.10, echarts: ^5.4.2, vue-echarts: ^6.6.2,Echart的使用 Echart所有组件和图表类型 在vue中使用Echart发现在设置某些属性的时候图上对应的测试项死活出不来。。。 然后翻找源代码发现对于Echart中属性的使用都需要注册–组件与对应类型图表 在使用过程中图表很容易猜测出来柱图或者折线图但是组件的名称就不太容易确定又没有明确的文档说明只能查看源码 以下是所有组件与图表类型需要的时候注册对应的即可 var BUITIN_COMPONENTS_MAP {grid: GridComponent,polar: PolarComponent,geo: GeoComponent,singleAxis: SingleAxisComponent,parallel: ParallelComponent,calendar: CalendarComponent,graphic: GraphicComponent,toolbox: ToolboxComponent,tooltip: TooltipComponent,axisPointer: AxisPointerComponent,brush: BrushComponent,title: TitleComponent,timeline: TimelineComponent,markPoint: MarkPointComponent,markLine: MarkLineComponent,markArea: MarkAreaComponent,legend: LegendComponent,dataZoom: DataZoomComponent,visualMap: VisualMapComponent,// aria: AriaComponent,// dataset: DatasetComponent,// DependenciesxAxis: GridComponent,yAxis: GridComponent,angleAxis: PolarComponent,radiusAxis: PolarComponent};var BUILTIN_CHARTS_MAP {line: LineChart,bar: BarChart,pie: PieChart,scatter: ScatterChart,radar: RadarChart,map: MapChart,tree: TreeChart,treemap: TreemapChart,graph: GraphChart,gauge: GaugeChart,funnel: FunnelChart,parallel: ParallelChart,sankey: SankeyChart,boxplot: BoxplotChart,candlestick: CandlestickChart,effectScatter: EffectScatterChart,lines: LinesChart,heatmap: HeatmapChart,pictorialBar: PictorialBarChart,themeRiver: ThemeRiverChart,sunburst: SunburstChart,custom: CustomChart};Echart 使用方法 import { use } from echarts/core; import { CanvasRenderer } from echarts/renderers; import { BarChart, LineChart, PieChart, ScatterChart } from echarts/charts; import { TitleComponent, TooltipComponent, LegendComponent, GridComponent, ToolboxComponent, MarkPointComponent, MarkLineComponent } from echarts/components;use([CanvasRenderer,//必须注册TitleComponent,TooltipComponent,LegendComponent,GridComponent,ToolboxComponent,MarkPointComponent,MarkLineComponent,//需要展示该属性就需要注册BarChart, ]);例如上述代码中并不是案例都会用到MarkPointComponent,在设置图表选项中用到了该点才会需要注册。 以下是设置选项option设置遵循Echart文档即可 const barOpsreactive({title: {text: 柱图,left: left},tooltip: {trigger: axis,axisPointer: {type: cross,crossStyle: {color: #999}}},legend: {data: [条数, 金额]},xAxis: [{type: category,data: [成功,失败,重试],axisPointer: {type: shadow}}],yAxis: [{type: value,name: 条数,min: 0,max: null,interval: 100000,axisLabel: {formatter: {value}}},{type: value,name: 金额,min: 0,max: null,interval: 200000,axisLabel: {formatter: {value} 元,rotate: -45}}],series: [{name: 条数,type: bar,data: [200,100,500]},{name: 金额,type: bar,yAxisIndex: 1,tooltip: {valueFormatter: function (value) {return value;}},label: {show: true,formatter: {金额},rotate: 90,position: [50%, 50%]},data: [22200,1077770,5000]}] }) series中type设置的类型就是需要注册的图表类型其它barOps的属性基本都是组件也是从这里确定你要注册的内容 v-chart classecharts :optionbarOps :autoresizetrue/v-chart style .echarts {width: 100%;height: 600px; } /style以上是图表的vue相关代码设置还有非常重要的一点在最开始的时候没有设置classecharts,图表根本不展示所以 Echart 一定要设置高度
http://www.hkea.cn/news/14476642/

相关文章:

  • 怎么创办自己的网站邻水建设局网站
  • 网站开发硬件成本制作网站设计的总结
  • 哪个网站可以做兼职ppt北京的网站建设
  • 建设网站全部流程wordpress is电影主题
  • 六枝做网站网站内容维护费用
  • 中国做铁塔的公司网站qq群推广平台
  • 周口哪里做网站分阶段建设网站
  • 巩义做网站贵阳网站制作策划
  • 佛山建设网站小企业网站 优帮云
  • 专门做捷径网站帝国cms更改网站ico
  • 苏州专业设计网站聊城 网站制作
  • 做贸易网站layui加入wordpress
  • 网站开发费用做账完整个人网站html
  • 网站功能是什么找合作项目app平台
  • 做动漫短视频网站漳州网站开发
  • wordpress搜索字段宁波seo排名优化价格
  • 在线A视频网站(级做爰片)wordpress无法打开
  • 阿里巴巴网站的搜索引擎优化案例红色文化网站建设
  • 上海营销型网站建站扁平化企业网站
  • 一个单位网站被黑该怎么做网页加速器手机
  • 手机网站做指向wordpress工具栏移到底部
  • 申请绿色网站wordpress 死链检测
  • 大连网站制作开发东阳便宜自适应网站建设优惠
  • 网站开发流程记住吧邯郸信息港房屋出售
  • 可以做区块链推广的网站哈尔滨模板网站
  • 中英文网站为什么要分开做域名备案成功如何做网站
  • 菏泽正耀网站建设公司怎么样大连网站设计哪个最好
  • 什么网站做家具出口马来西亚的网站后缀
  • 哈尔滨门户网站是什么用python怎么做网站
  • 中核二三公司是国企还是央企汕头seo管理