antvis/G2

搭建 playground,可以切换 4+ 主题风格 #4376

visiky posted onGitHub

需求描述

增加一个简单的 dashboard 页面,可以切换查看不同的主题风格:包括 light、dark、pattern、rough 以及其它

方案

增加一个页面,提供 4+ 主题风格,类似于 highcharts 的形式,暂时不提供精细化的主题构建器

  • 技术层面上是直接提供风格选择的 swtich 组件,代码上切换 theme type
  • Demos 可以从 examples 中选取,方便关联跳转到 examples 的案例进行编码(这一步也可以暂时不做,需要考虑是否将 theme 类型带过去)

竞调

AnyCharts

<img width="949" alt="image" src="https://user-images.githubusercontent.com/15646325/204730527-2251ce96-842e-430d-88dc-87d9a570c955.png"> <img width="947" alt="image" src="https://user-images.githubusercontent.com/15646325/204730633-fb936fc1-1208-46a0-84b5-bb8a095d15dd.png">

Nivo、ECharts

nivo、echarts 和之前 AntV 的主题构建器还挺像的,比较精细化

<img width="1440" alt="image" src="https://user-images.githubusercontent.com/15646325/204731052-cfb6b19e-bfa7-4dd5-9924-a652915489e6.png">

HighCharts

<img width="1065" alt="image" src="https://user-images.githubusercontent.com/15646325/204731555-3844efd2-95ad-4e53-a48f-b06ee4310c67.png">


Fund this Issue

$0.00
Funded

Pull requests