怎么从JSON获取数据到Echart制作饼图
1个回答
展开全部
饼图的数据获取的值为value,示例代码为:data:[
{value:335, name:'直接访问'},
{value:310, name:'邮件营销'},
{value:234, name:'联盟广告'},
{value:135, name:'视频广告'},
{value:1548, name:'搜索引擎'}]
解决的代码是 value:{data[0].generalPractitionerRegistrationCount}获取到第一行值为generalPractitionerRegistrationCount
{value:335, name:'直接访问'},
{value:310, name:'邮件营销'},
{value:234, name:'联盟广告'},
{value:135, name:'视频广告'},
{value:1548, name:'搜索引擎'}]
解决的代码是 value:{data[0].generalPractitionerRegistrationCount}获取到第一行值为generalPractitionerRegistrationCount
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询