HU, Pili

Results 91 comments of HU, Pili

Does the following example solve your issue? https://nbviewer.jupyter.org/github/hupili/python-for-data-and-media-communication/blob/master/pyecharts-examples/pyecharts-resize.ipynb?xfffcachffffxsdfsdffffxffe#Change-graph-size-and-display-in-NBViewer

The code is not reproducible. @ChicoXYC , please try to get the data that produces this case. Without content loaded in `df` or `tf`, the chart can not be reproduced....

@Graceyit can you provide the following information? - Export `df` using `df.to_csv` and then upload the file here (drag and drop to the issue comment box)

It also works if you can link to your project repo where we can find this data file.

This issue is worth a stand alone tutorial. 👍 . Let's keep it in "discussion" tag first, in case others meet similar problems. We can come back to consolidate materials...

@CathyChang1996 , can you give the direct link of notebooks and data files?

That is the bug behind `pyecharts`. In short, `pyecharts` assume you use categorical data for xAxis. Following are the troubleshooting steps. Workarounds will be come in followup posts. We need...

There is no option from `pyecharts` to change the type from "category" to "value". From the [official doc](http://pyecharts.org/#/zh-cn/charts_base?id=line%EF%BC%88%E6%8A%98%E7%BA%BF%E9%9D%A2%E7%A7%AF%E5%9B%BE%EF%BC%89) The function signature (parameter list) All the samples use categorical data. Actually,...

Option 1 seems Ok in this case because **your original `years` list is uniform**. Note that the graph will be distorted if the year is not uniform/ consecutive. Solution: ```python...

Here is the Option 2 -- hack `pyecharts`. ```python from pyecharts import Line line = Line("Unique change trend") line.add("Unique Songs", years, values) #, mark_line=["average"], mark_point=['max','min']) xAxis = line._option['xAxis'][0] xAxis['type'] =...