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/08/22 08:30:51 UTC

[GitHub] [incubator-echarts] liby opened a new issue #13174: Array literals data cannot generate a chart of type series-custom

liby opened a new issue #13174:
URL: https://github.com/apache/incubator-echarts/issues/13174


   ### Version
   4.8.0
   
   ### Reproduction link
   [https://echarts.apache.org/examples/zh/editor.html?c=custom-profile](https://echarts.apache.org/examples/zh/editor.html?c=custom-profile)
   
   ### Steps to reproduce
   1. Change `var data = []` to `var data =[...]`, that is, directly assign a data set.
   2. Comment out lines 16 through 17, that is, the loop statement of `echarts.util.each`.
   
   ### What is expected?
   Render the chart normally
   
   ### What is actually happening?
   The chart is not rendered.
   
   ### Any additional comments? (optional)
   <details>
   <summary>Data set</summary>
   
   ```json
   [
     {
   	"name": "Listeners",
   	"value": [0, 1598079976102, 1598079978142, 2040],
   	"itemStyle": {
   		"normal": {
   			"color": "#e0bc78"
   		}
   	}
     }, 
     {
   	"name": "GPU",
   	"value": [0, 1598079978342, 1598079983856, 5514],
   	"itemStyle": {
   		"normal": {
   			"color": "#72b362"
   		}
   	}
     }, 
     {
   	"name": "Documents",
   	"value": [0, 1598079984430, 1598079988484, 4054],
   	"itemStyle": {
   		"normal": {
   			"color": "#bd6d6c"
   		}
   	}
     }, 
     {
       "name": "GPU Memory",
       "value": [0, 1598079988955, 1598079994157, 5202],
       "itemStyle": {
         "normal": {
           "color": "#dc77dc"
         }
       }
     }, 
     {
       "name": "Documents",
       "value": [0, 1598079995841, 1598079998519, 2678],
       "itemStyle": {
         "normal": {
           "color": "#bd6d6c"
         }
       }
     }, 
     {
       "name": "Listeners",
       "value": [0, 1598079999526, 1598080000916, 1390],
       "itemStyle": {
         "normal": {
           "color": "#e0bc78"
         }
       }
     }, 
     {
       "name": "Documents",
       "value": [0, 1598080002305, 1598080006507, 4202],
       "itemStyle": {
         "normal": {
           "color": "#bd6d6c"
         }
       }
     }, 
     {
       "name": "GPU Memory",
       "value": [0, 1598080008039, 1598080017638, 9599],
       "itemStyle": {
         "normal": {
           "color": "#dc77dc"
         }
       }
     }, 
     {
       "name": "Documents",
       "value": [0, 1598080018745, 1598080024373, 5628],
       "itemStyle": {
         "normal": {
           "color": "#bd6d6c"
         }
       }
     }, 
     {
       "name": "Nodes",
       "value": [0, 1598080025471, 1598080026857, 1386],
       "itemStyle": {
         "normal": {
           "color": "#75d874"
         }
       }
     }, 
     {
       "name": "Listeners",
       "value": [1, 1598079976102, 1598079982778, 6676],
       "itemStyle": {
         "normal": {
           "color": "#e0bc78"
         }
       }
     }, 
     {
       "name": "GPU Memory",
       "value": [1, 1598079983319, 1598079986803, 3484],
       "itemStyle": {
         "normal": {
           "color": "#dc77dc"
         }
       }
     }, 
     {
       "name": "Documents",
       "value": [1, 1598079987488, 1598079991553, 4065],
       "itemStyle": {
         "normal": {
           "color": "#bd6d6c"
         }
       }
     }, 
     {
       "name": "Listeners",
       "value": [1, 1598079993374, 1598079997169, 3795],
       "itemStyle": {
         "normal": {
           "color": "#e0bc78"
         }
       }
     }, 
     {
       "name": "GPU Memory",
       "value": [1, 1598079998702, 1598080004620, 5918],
       "itemStyle": {
         "normal": {
           "color": "#dc77dc"
         }
       }
     }, 
     {
       "name": "Nodes",
       "value": [1, 1598080005770, 1598080009792, 4022],
       "itemStyle": {
         "normal": {
           "color": "#75d874"
         }
       }
     }, 
     {
       "name": "Listeners",
       "value": [1, 1598080011065, 1598080016037, 4972],
       "itemStyle": {
         "normal": {
           "color": "#e0bc78"
         }
       }
     }, 
     {
       "name": "Nodes",
       "value": [1, 1598080017045, 1598080025013, 7968],
       "itemStyle": {
         "normal": {
           "color": "#75d874"
         }
       }
     }, 
     {
       "name": "Listeners",
       "value": [1, 1598080025537, 1598080033773, 8236],
       "itemStyle": {
         "normal": {
           "color": "#e0bc78"
         }
       }
     }, 
     {
       "name": "Nodes",
       "value": [1, 1598080035396, 1598080044685, 9289],
       "itemStyle": {
         "normal": {
           "color": "#75d874"
         }
       }
     }, 
     {
       "name": "Listeners",
       "value": [2, 1598079976102, 1598079979170, 3068],
       "itemStyle": {
         "normal": {
           "color": "#e0bc78"
         }
       }
     }, 
     {
       "name": "Documents",
       "value": [2, 1598079979670, 1598079983773, 4103],
       "itemStyle": {
         "normal": {
           "color": "#bd6d6c"
         }
       }
     }, 
     {
       "name": "Listeners",
       "value": [2, 1598079983850, 1598079988378, 4528],
       "itemStyle": {
         "normal": {
           "color": "#e0bc78"
         }
       }
     }, 
     {
       "name": "GPU",
       "value": [2, 1598079988474, 1598079993679, 5205],
       "itemStyle": {
         "normal": {
           "color": "#72b362"
         }
       }
     }, 
     {
       "name": "GPU Memory",
       "value": [2, 1598079994180, 1598080001054, 6874],
       "itemStyle": {
         "normal": {
           "color": "#dc77dc"
         }
       }
     }, 
     {
       "name": "Listeners",
       "value": [2, 1598080001556, 1598080006132, 4576],
       "itemStyle": {
         "normal": {
           "color": "#e0bc78"
         }
       }
     }, 
     {
       "name": "Documents",
       "value": [2, 1598080007489, 1598080007701, 212],
       "itemStyle": {
         "normal": {
           "color": "#bd6d6c"
         }
       }
     }, 
     {
       "name": "Documents",
       "value": [2, 1598080008782, 1598080012641, 3859],
       "itemStyle": {
         "normal": {
           "color": "#bd6d6c"
         }
       }
     }, 
     {
       "name": "GPU",
       "value": [2, 1598080014135, 1598080022292, 8157],
       "itemStyle": {
         "normal": {
           "color": "#72b362"
         }
       }
     }, 
     {
       "name": "JS Heap",
       "value": [2, 1598080023076, 1598080033021, 9945],
       "itemStyle": {
         "normal": {
           "color": "#7b9ce1"
         }
       }
     }
   ]
   ```
   </details>
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
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



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


[GitHub] [incubator-echarts] liby commented on issue #13174: Array literals data cannot generate a chart of type series-custom

Posted by GitBox <gi...@apache.org>.
liby commented on issue #13174:
URL: https://github.com/apache/incubator-echarts/issues/13174#issuecomment-678623170


   @plainheart 
   Oh, I'm sorry. I was sloppy. It is foolhardy to rush to ask questions without carefully examining every line of code.
   Thank you for your reply.


----------------------------------------------------------------
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



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


[GitHub] [incubator-echarts] plainheart commented on issue #13174: Array literals data cannot generate a chart of type series-custom

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #13174:
URL: https://github.com/apache/incubator-echarts/issues/13174#issuecomment-678621723


   Thanks for your report. This is not a bug and you may be missing something.
   FYI, there is a variable named `startTime` with a value of `current time`. The value fields in each data item are calculated by `startTime`. And in the line 78, the minimum value of `xAxis` is set to be `startTime`, that is current time, but you used the static old dataset which is generated before and bigger than `startTime`, so the chart won't render these items.
   Thus it's suggested to use the dynamic generation or assign the `startTime` with a date less than current time, for example, by the dataset you provided, it could be
   ```js
   var startTime = +new Date('2020/08/22 15:06:00')
   ``` 
   
   An online example is available on ECharts Gallery: https://gallery.echartsjs.com/editor.html?c=xQkfEzRZD2&v=1


----------------------------------------------------------------
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



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


[GitHub] [incubator-echarts] plainheart edited a comment on issue #13174: Array literals data cannot generate a chart of type series-custom

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #13174:
URL: https://github.com/apache/incubator-echarts/issues/13174#issuecomment-678621723






----------------------------------------------------------------
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



---------------------------------------------------------------------
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 #13174: Array literals data cannot generate a chart of type series-custom

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13174:
URL: https://github.com/apache/incubator-echarts/issues/13174#issuecomment-678613430


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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



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


[GitHub] [incubator-echarts] liby closed issue #13174: Array literals data cannot generate a chart of type series-custom

Posted by GitBox <gi...@apache.org>.
liby closed issue #13174:
URL: https://github.com/apache/incubator-echarts/issues/13174


   


----------------------------------------------------------------
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



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