You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/04/15 06:26:25 UTC

[GitHub] [incubator-echarts] yingchy1996 opened a new issue #12442: canvas渲染在页面上

yingchy1996 opened a new issue #12442: canvas渲染在页面上
URL: https://github.com/apache/incubator-echarts/issues/12442
 
 
   我本地可以渲染echarts 但CI CD跑过之后没法显示echarts 页面上canvas也没渲染出来 找了半天也没找到原因 才来这提问 是用angular开发的 module也引入了
   `<div class="content-bottom-echarts" style="width: 100%; height: 400px;" echarts [options]="chartOption">
   
         </div>`
   `private _initEcharts(): void {
       const mockList = {
         xData: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
         yData: [11, 24, 8, 44, 18, 22, 66, 55, 11, 5, 68, 33, 22, 55, 88, 77]
       };
       setTimeout(() => {
         this.chartOption = {
           xAxis: {
             type: 'category',
             data: mockList.xData
           },
           yAxis: {
             type: 'value',
             splitLine: {
               show: true,
               lineStyle: {
                 type: 'dashed'
               }
             }
           },
           series: [{
             data: mockList.yData,
             type: 'line',
             lineStyle: {
               color: '#009FFF',
             },
             itemStyle: {
               opacity: 0,
             },
           }]
         };
         console.log(this.chartOption)
       }, 100);
       this.chartOption2 =  {
         tooltip: {
             trigger: 'item',
             formatter: '{a} <br/>{b}: {c} ({d}%)'
         },
         legend: {
             orient: 'vertical',
             left: 10,
             data: ['直接访问', '邮件营销', '联盟广告', '视频广告', '搜索引擎']
         },
         series: [
             {
                 name: '访问来源',
                 type: 'pie',
                 radius: ['50%', '70%'],
                 avoidLabelOverlap: false,
                 label: {
                     show: false,
                     position: 'center'
                 },
                 emphasis: {
                     label: {
                         show: true,
                         fontSize: '30',
                         fontWeight: 'bold'
                     }
                 },
                 labelLine: {
                     show: false
                 },
                 data: [
                     {value: 335, name: '直接访问'},
                     {value: 310, name: '邮件营销'},
                     {value: 234, name: '联盟广告'},
                     {value: 135, name: '视频广告'},
                     {value: 1548, name: '搜索引擎'}
                 ]
             }
         ]
     };
     }`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] closed issue #12442: canvas渲染在页面上

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #12442: canvas渲染在页面上
URL: https://github.com/apache/incubator-echarts/issues/12442
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12442: canvas渲染在页面上

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12442: canvas渲染在页面上
URL: https://github.com/apache/incubator-echarts/issues/12442#issuecomment-613842226
 
 
   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,可以请使用 issue 模板重新创建 issue。
   
   如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org