echarts [Feature] 如何实现折线图按x轴进行分区展示的效果

n7taea2i  于 3个月前  发布在  Echarts
关注(0)|答案(2)|浏览(68)

What problem does this feature solve?

问题:想要在 示例 中使用visualMap实现的效果

  1. 如果不使用visualMap有没有其他更好的方法
  2. 如果使用visualMap,在series比较多,数据量比较大的情况下会有什么风险

What does the proposed API look like?

折线图的lineStyle可以设置回调,自定义每个区段的折线颜色,或者是否连接

lqfhib0f

lqfhib0f1#

@wyzhang0401 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Feature] How to achieve the effect of partitioning the line chart according to the x-axis

BODY

What problem does this feature solve?

Question: The effect you want to achieve using visualMap in the example https://echarts.apache.org/examples/zh/editor.html?c=dataset-simple0&code=PYBwLglsB2AEC8sDeAoWsA2BTA5l6AJgFzIC-ANGrGMMBpCCauumAE4Q55skDkAhgA8IAZ16UWsIaIAKwCNDBYeyKpLABPEFj4 BjNsBFi1sUlQpVddYCoDaJ3gGIArABYA7AAZdANnEPHAE4ARl1dd2d_SScAM35dAA5nBKiWJywsHyy_CTTHdwBmXU8CLFT0JwKAI34AJnda8thYxNdnRtyKoP4fTyrXJvT-dzDdXioAXVyCfjB-ESwwJhM RYABXNl0dWHtJdFteEAMCNd0wcWbaz2DI8kvrnPvg914pk33eAFlZ3QALflgABlZkoLq4CgA6Ap3JIQhJ3QKQ9xvPY7L4QDAAa1gABUsPwLglIcE7oUIa47s5nBDgii9gcAMK_DILWAM4BWAkwnzku4 -am1GG1CHOOmSA4AdX4GGgazAsAAQgYAO7QCBlUnCimwZyQwJ3AqBGlilgHb5gP4A4FgJTBMGQ6GwWHw2CIiHIzqm9FY3H4u0w4mkyHaqnGz0fJksrBsjnAfj-p087X8iGCp3C0XhtFSmVyxUqtVYBMNX k6vUGo20kwTcy5QQAQWEIiY1C0214ulmuBsGl4plyGkboiYFnQADdRGtpd9GDsTMw9iJfsBlSQ4hgFlmCBAALb4ERQaAkTxZhYcLAiACShCwgmPWZA6q2zbnqPQC7fmCUJGh7z2VgwGw-BcDxv D8P90FHN8PzfHBv1gCkIJYehtmcLNJAAoDmhArxfHGT8oNRGDUTg7YfHQlhMJUJw3Fw8CCL_GtJEI1RUSXFc12lTc_23PdoAPGB7z_M91SvG871gEk_0fLBnxIXZoKQ9AUJ_Cj0Co4CQjCCJ 8LfFjJGIvZSJIRDP2U -C0KU2ANOwrTwkiJD9JYQzJGM2ByKsmynDsnTHMYkwWMM9jV1gdduNRXj90PIS2OUUTr1KCTBWkp8L3kpCXOQ-DfzM6zrGoxw4kSZJdNRJz3ystzTLMlSdTUvLAIKoqkhSRyKMy9A3I83KvMK-IWtKv YzFRJiWGG2A6QAekm2AABFZIwfg2GjBYx2UaVYBqNhYBEi87nxP5YGVDEME26Md34EBtAIKhpuoYApAatYdzgYAYlgGY5gWMAIVWDYtk2jQPqwOI1noCEqF2l9bCQVttD4DAFDKftkDh9tEegZGKFR zR4eaDGsZrUgAG4gA

  1. Is there any other better method without using visualMap?
  2. If you use visualMap, what are the risks when there are many series and a large amount of data?

What does the proposed API look like?

The lineStyle of the line chart can set a callback to customize the line color of each section, or whether to connect

相关问题