[GitHub] stevelacerda7 opened a new issue #8157: how do I clear a chart? Basically I need to re-initialize it.

2018-04-13 Thread GitBox
stevelacerda7 opened a new issue #8157: how do I clear a chart? Basically I 
need to re-initialize it.
URL: https://github.com/apache/incubator-echarts/issues/8157
 
 
   I have several charts on a single page, and each chart changes based on what 
the user selects. I have an ajax call that retrieves the data, so the data 
varies and is dynamic based on users selection. I'm having a problem clearing 
out old data. Basically, I just want after each selection to re-initialize the 
chart and start from scratch. How can I do that?
   
   It seems that now, when the user deselects a metric, the chart retains that 
old information. I've tried setting data to null, or empty array, but nothing 
seems to work. 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org



Re: ECharts todo list of next release

2018-04-13 Thread Kevin A. McGrail
FYI, Wenli, please try and login to
https://issues.apache.org/jira/projects/ECHARTS/ and see if you can.  It
might have worked, not sure as you saw from my selfserve ticket.

--
Kevin A. McGrail
Asst. Treasurer & VP Fundraising, Apache Software Foundation
Chair Emeritus Apache SpamAssassin Project
https://www.linkedin.com/in/kmcgrail - 703.798.0171

On Fri, Apr 13, 2018 at 10:50 AM, Kevin A. McGrail 
wrote:

> Thanks Wenli, I'll try to remember which is correct.  I don't really think
> there is a "correct" order but for me, the most common order I see is
> firstname, lastname.  In fact, it's really something with the reverse order
> I've noticed with people from China.  Also, sometimes it's very confusing
> for me because they'll have 3 names, someimes only use two and sometimes
> concatenate them.  My only goal is not to offend and to call people by
> their prefence.  Otherwise I'll just call you Ovilia :-)
>
> So I tried to submit the request for a Jira for echarts with
> kmcgrail,johndament,wave,ovilia as admins to start the ball rolling.  But
> the selfserve system is timing out.  I opened a ticket for that at
> https://issues.apache.org/jira/browse/INFRA-16353
>
> Do you also want to get a website for echarts.apache.org going as well?
> John, do they use echarts.incubator.apache.org to start?
>
> Regards,KAM
>
> --
> Kevin A. McGrail
> Asst. Treasurer & VP Fundraising, Apache Software Foundation
> Chair Emeritus Apache SpamAssassin Project
> https://www.linkedin.com/in/kmcgrail - 703.798.0171
>
> On Fri, Apr 13, 2018 at 9:56 AM, Wenli Zhang 
> wrote:
>
>> Hi Kevin,
>>
>> Please help create a project for echarts since I don't have the right to
>> do
>> so.
>>
>> As about my name, sorry for the confusion.
>> My lastname is Zhang and firstname is Wenli.
>> Yes, we Chinese sometimes do switch the order since we are confused which
>> one is the correct order. I've heard of two versions of ordering for
>> foreign names to be translated into English. One says that firstname goes
>> first in English name (and I guess that's why it's called firstname haha)
>> so it should be Wenli Zhang. Another saying is that, foreign names should
>> follow the custom order of foreign languages, which makes it Zhang Wenli.
>> Anyway, I would prefer to be called Wenli. And do please tell me if there
>> is a correct order. :)
>>
>>
>> Zhang Wenli
>> http://zhangwenli.com
>>
>> On Fri, Apr 13, 2018 at 9:42 PM, Kevin A. McGrail 
>> wrote:
>>
>> >  Great point.  I didn't know the self serve had gone live.  I thought it
>> > was still in testing.  Wenli, you'll see the ability to create a Jira
>> > project there.  John, not sure what you meant about git repo.  Was that
>> a
>> > different issue or a Fruedian slip?
>> >
>> > --
>> > Kevin A. McGrail
>> > Asst. Treasurer & VP Fundraising, Apache Software Foundation
>> > Chair Emeritus Apache SpamAssassin Project
>> > https://www.linkedin.com/in/kmcgrail - 703.798.0171
>> >
>> > On Fri, Apr 13, 2018 at 8:31 AM, John D. Ament 
>> > wrote:
>> >
>> > > On Fri, Apr 13, 2018 at 7:51 AM Kevin A. McGrail > >
>> > > wrote:
>> > >
>> > > > Zhang,
>> > > >
>> > > > First, I have a dumb question.  Your email address is Wenli Zhang
>> and
>> > > your
>> > > > signature is Zhang Wenli.  I see this often with names in China.
>> Can
>> > you
>> > > > tell me more about this?  Is Zhang your given name and Wenli your
>> > > surname?
>> > > > Why do you switch them?  In English, I would expect a command like
>> > > McGrail,
>> > > > Kevin if it was my lastname/firstname.
>> > > >
>> > > > Second, to add a project for echarts to Jira, what I would do is
>> open a
>> > > > Jira ticket with infrastructure.  Then you can search echarts
>> issues in
>> > > > jira and retag them.  They might also use different jira instances
>> for
>> > > > projects, I don't know but I'll leave that to infrastructure.  The
>> key
>> > > > point is ask them for what you need.
>> > > >
>> > > >
>> > > If you're not aware, Infra now supports a large number of features as
>> > self
>> > > serve options.  Last I checked, they're open for ASF Members and
>> Chairs,
>> > so
>> > > you or I can submit a request on the podling's behalf to get the
>> various
>> > > resources https://selfserve.apache.org/
>> > >
>> > > Note that any PPMC member can request a git repo.
>> > >
>> > > Wenli, I shall close your JIRA ticket as it is not how we manage this.
>> > >
>> > > John
>> > >
>> > >
>> > > > Regards,
>> > > > KAM
>> > > >
>> > > > --
>> > > > Kevin A. McGrail
>> > > > Asst. Treasurer & VP Fundraising, Apache Software Foundation
>> > > > Chair Emeritus Apache SpamAssassin Project
>> > > > https://www.linkedin.com/in/kmcgrail - 703.798.0171
>> <(703)%20798-0171>
>> > > >
>> > > > On Fri, Apr 13, 2018 at 3:07 AM, Wenli Zhang > >
>> > > > wrote:
>> > > >
>> > > > > Hi all,
>> > > > >
>> > > > > I've 

Re: ECharts todo list of next release

2018-04-13 Thread Wenli Zhang
Hi Kevin,

Please help create a project for echarts since I don't have the right to do
so.

As about my name, sorry for the confusion.
My lastname is Zhang and firstname is Wenli.
Yes, we Chinese sometimes do switch the order since we are confused which
one is the correct order. I've heard of two versions of ordering for
foreign names to be translated into English. One says that firstname goes
first in English name (and I guess that's why it's called firstname haha)
so it should be Wenli Zhang. Another saying is that, foreign names should
follow the custom order of foreign languages, which makes it Zhang Wenli.
Anyway, I would prefer to be called Wenli. And do please tell me if there
is a correct order. :)


Zhang Wenli
http://zhangwenli.com

On Fri, Apr 13, 2018 at 9:42 PM, Kevin A. McGrail 
wrote:

>  Great point.  I didn't know the self serve had gone live.  I thought it
> was still in testing.  Wenli, you'll see the ability to create a Jira
> project there.  John, not sure what you meant about git repo.  Was that a
> different issue or a Fruedian slip?
>
> --
> Kevin A. McGrail
> Asst. Treasurer & VP Fundraising, Apache Software Foundation
> Chair Emeritus Apache SpamAssassin Project
> https://www.linkedin.com/in/kmcgrail - 703.798.0171
>
> On Fri, Apr 13, 2018 at 8:31 AM, John D. Ament 
> wrote:
>
> > On Fri, Apr 13, 2018 at 7:51 AM Kevin A. McGrail 
> > wrote:
> >
> > > Zhang,
> > >
> > > First, I have a dumb question.  Your email address is Wenli Zhang and
> > your
> > > signature is Zhang Wenli.  I see this often with names in China.  Can
> you
> > > tell me more about this?  Is Zhang your given name and Wenli your
> > surname?
> > > Why do you switch them?  In English, I would expect a command like
> > McGrail,
> > > Kevin if it was my lastname/firstname.
> > >
> > > Second, to add a project for echarts to Jira, what I would do is open a
> > > Jira ticket with infrastructure.  Then you can search echarts issues in
> > > jira and retag them.  They might also use different jira instances for
> > > projects, I don't know but I'll leave that to infrastructure.  The key
> > > point is ask them for what you need.
> > >
> > >
> > If you're not aware, Infra now supports a large number of features as
> self
> > serve options.  Last I checked, they're open for ASF Members and Chairs,
> so
> > you or I can submit a request on the podling's behalf to get the various
> > resources https://selfserve.apache.org/
> >
> > Note that any PPMC member can request a git repo.
> >
> > Wenli, I shall close your JIRA ticket as it is not how we manage this.
> >
> > John
> >
> >
> > > Regards,
> > > KAM
> > >
> > > --
> > > Kevin A. McGrail
> > > Asst. Treasurer & VP Fundraising, Apache Software Foundation
> > > Chair Emeritus Apache SpamAssassin Project
> > > https://www.linkedin.com/in/kmcgrail - 703.798.0171 <(703)%20798-0171>
> > >
> > > On Fri, Apr 13, 2018 at 3:07 AM, Wenli Zhang 
> > > wrote:
> > >
> > > > Hi all,
> > > >
> > > > I've created a todo list of our next release, ECharts 4.1.0 at
> > > > https://issues.apache.org/jira/browse/INCUBATOR-211 .
> > > > I'm not quite sure if I did it right?
> > > >
> > > > I wonder if we could have a project called echarts on JIRA so that we
> > can
> > > > better filter this kind of issues later? I didn't find the way/access
> > to
> > > do
> > > > so, could anyone give a hand?
> > > >
> > > > Thanks!
> > > >
> > > > Zhang Wenli
> > > > http://zhangwenli.com
> > > >
> > >
> >
>


Re: ECharts todo list of next release

2018-04-13 Thread Kevin A. McGrail
 Great point.  I didn't know the self serve had gone live.  I thought it
was still in testing.  Wenli, you'll see the ability to create a Jira
project there.  John, not sure what you meant about git repo.  Was that a
different issue or a Fruedian slip?

--
Kevin A. McGrail
Asst. Treasurer & VP Fundraising, Apache Software Foundation
Chair Emeritus Apache SpamAssassin Project
https://www.linkedin.com/in/kmcgrail - 703.798.0171

On Fri, Apr 13, 2018 at 8:31 AM, John D. Ament 
wrote:

> On Fri, Apr 13, 2018 at 7:51 AM Kevin A. McGrail 
> wrote:
>
> > Zhang,
> >
> > First, I have a dumb question.  Your email address is Wenli Zhang and
> your
> > signature is Zhang Wenli.  I see this often with names in China.  Can you
> > tell me more about this?  Is Zhang your given name and Wenli your
> surname?
> > Why do you switch them?  In English, I would expect a command like
> McGrail,
> > Kevin if it was my lastname/firstname.
> >
> > Second, to add a project for echarts to Jira, what I would do is open a
> > Jira ticket with infrastructure.  Then you can search echarts issues in
> > jira and retag them.  They might also use different jira instances for
> > projects, I don't know but I'll leave that to infrastructure.  The key
> > point is ask them for what you need.
> >
> >
> If you're not aware, Infra now supports a large number of features as self
> serve options.  Last I checked, they're open for ASF Members and Chairs, so
> you or I can submit a request on the podling's behalf to get the various
> resources https://selfserve.apache.org/
>
> Note that any PPMC member can request a git repo.
>
> Wenli, I shall close your JIRA ticket as it is not how we manage this.
>
> John
>
>
> > Regards,
> > KAM
> >
> > --
> > Kevin A. McGrail
> > Asst. Treasurer & VP Fundraising, Apache Software Foundation
> > Chair Emeritus Apache SpamAssassin Project
> > https://www.linkedin.com/in/kmcgrail - 703.798.0171 <(703)%20798-0171>
> >
> > On Fri, Apr 13, 2018 at 3:07 AM, Wenli Zhang 
> > wrote:
> >
> > > Hi all,
> > >
> > > I've created a todo list of our next release, ECharts 4.1.0 at
> > > https://issues.apache.org/jira/browse/INCUBATOR-211 .
> > > I'm not quite sure if I did it right?
> > >
> > > I wonder if we could have a project called echarts on JIRA so that we
> can
> > > better filter this kind of issues later? I didn't find the way/access
> to
> > do
> > > so, could anyone give a hand?
> > >
> > > Thanks!
> > >
> > > Zhang Wenli
> > > http://zhangwenli.com
> > >
> >
>


Re: ECharts todo list of next release

2018-04-13 Thread John D. Ament
On Fri, Apr 13, 2018 at 7:51 AM Kevin A. McGrail 
wrote:

> Zhang,
>
> First, I have a dumb question.  Your email address is Wenli Zhang and your
> signature is Zhang Wenli.  I see this often with names in China.  Can you
> tell me more about this?  Is Zhang your given name and Wenli your surname?
> Why do you switch them?  In English, I would expect a command like McGrail,
> Kevin if it was my lastname/firstname.
>
> Second, to add a project for echarts to Jira, what I would do is open a
> Jira ticket with infrastructure.  Then you can search echarts issues in
> jira and retag them.  They might also use different jira instances for
> projects, I don't know but I'll leave that to infrastructure.  The key
> point is ask them for what you need.
>
>
If you're not aware, Infra now supports a large number of features as self
serve options.  Last I checked, they're open for ASF Members and Chairs, so
you or I can submit a request on the podling's behalf to get the various
resources https://selfserve.apache.org/

Note that any PPMC member can request a git repo.

Wenli, I shall close your JIRA ticket as it is not how we manage this.

John


> Regards,
> KAM
>
> --
> Kevin A. McGrail
> Asst. Treasurer & VP Fundraising, Apache Software Foundation
> Chair Emeritus Apache SpamAssassin Project
> https://www.linkedin.com/in/kmcgrail - 703.798.0171 <(703)%20798-0171>
>
> On Fri, Apr 13, 2018 at 3:07 AM, Wenli Zhang 
> wrote:
>
> > Hi all,
> >
> > I've created a todo list of our next release, ECharts 4.1.0 at
> > https://issues.apache.org/jira/browse/INCUBATOR-211 .
> > I'm not quite sure if I did it right?
> >
> > I wonder if we could have a project called echarts on JIRA so that we can
> > better filter this kind of issues later? I didn't find the way/access to
> do
> > so, could anyone give a hand?
> >
> > Thanks!
> >
> > Zhang Wenli
> > http://zhangwenli.com
> >
>


[GitHub] Shadowzeng opened a new issue #8156: lines线特效的残影?

2018-04-13 Thread GitBox
Shadowzeng opened a new issue #8156: lines线特效的残影?
URL: https://github.com/apache/incubator-echarts/issues/8156
 
 
   
   
   
   ### One-line summary [问题简述]
   模拟迁徙中,设置lines series特效的轨迹尾巴效果trailLength后,在动画过程中会留下一条残影轨迹线,如图:
   
![image](https://user-images.githubusercontent.com/11520440/38734638-eeaa0148-3f58-11e8-8ed3-e5fdbb3876fc.png)
   
   如何配置能让残影轨迹消失?
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: 4.0.4
   + Browser version [浏览器类型和版本]:  Chrome
   + OS Version [操作系统类型和版本]:  Win 7  64bit
   
   
   
   
   
   ### Expected behaviour [期望结果]
   希望不要留下残影轨迹
   
   
   
   ### ECharts option [ECharts配置项]
   
   
   ```javascript
   option = {
   
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   
   
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org



Re: ECharts todo list of next release

2018-04-13 Thread Kevin A. McGrail
Zhang,

First, I have a dumb question.  Your email address is Wenli Zhang and your
signature is Zhang Wenli.  I see this often with names in China.  Can you
tell me more about this?  Is Zhang your given name and Wenli your surname?
Why do you switch them?  In English, I would expect a command like McGrail,
Kevin if it was my lastname/firstname.

Second, to add a project for echarts to Jira, what I would do is open a
Jira ticket with infrastructure.  Then you can search echarts issues in
jira and retag them.  They might also use different jira instances for
projects, I don't know but I'll leave that to infrastructure.  The key
point is ask them for what you need.

Regards,
KAM

--
Kevin A. McGrail
Asst. Treasurer & VP Fundraising, Apache Software Foundation
Chair Emeritus Apache SpamAssassin Project
https://www.linkedin.com/in/kmcgrail - 703.798.0171

On Fri, Apr 13, 2018 at 3:07 AM, Wenli Zhang  wrote:

> Hi all,
>
> I've created a todo list of our next release, ECharts 4.1.0 at
> https://issues.apache.org/jira/browse/INCUBATOR-211 .
> I'm not quite sure if I did it right?
>
> I wonder if we could have a project called echarts on JIRA so that we can
> better filter this kind of issues later? I didn't find the way/access to do
> so, could anyone give a hand?
>
> Thanks!
>
> Zhang Wenli
> http://zhangwenli.com
>


[GitHub] nani123123 opened a new issue #8155: echart 地图height ,top,width设置不生效得原因

2018-04-13 Thread GitBox
nani123123 opened a new issue #8155: echart 地图height ,top,width设置不生效得原因
URL: https://github.com/apache/incubator-echarts/issues/8155
 
 
   
   
   
   ### One-line summary [问题简述]
   
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:
   + Browser version [浏览器类型和版本]:
   + OS Version [操作系统类型和版本]:
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   
   
   
   
   ### ECharts option [ECharts配置项]
   
   
   ```javascript
   option = {
   
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   
   
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org



[GitHub] mrluos closed issue #8154: 图例颜色和折线的颜色

2018-04-13 Thread GitBox
mrluos closed issue #8154: 图例颜色和折线的颜色
URL: https://github.com/apache/incubator-echarts/issues/8154
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org



[GitHub] chenxxzhe opened a new issue #8153: Feat Request: Add arrow to the data line in line chart. 给折线加个箭头。

2018-04-13 Thread GitBox
chenxxzhe opened a new issue #8153: Feat Request: Add arrow to the data line in 
line chart. 给折线加个箭头。
URL: https://github.com/apache/incubator-echarts/issues/8153
 
 
   
   
   
   ### One-line summary [问题简述]
   
   可不可给折线图(type: line) 折线的右端加个箭头?
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: v4
   + Browser version [浏览器类型和版本]: any
   + OS Version [操作系统类型和版本]: any
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   
   
   
   
   ### ECharts option [ECharts配置项]
   
   
   ```javascript
   option = {
   
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   
   
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org



[GitHub] rickysang commented on issue #8090: 3.7.2版本之后,设置interval:0之后,第一个和最后一个标签不显示;然后设置showminlabel和showmaxlabel,但是第二个label和倒数第二个label又不显示了

2018-04-13 Thread GitBox
rickysang commented on issue #8090: 
3.7.2版本之后,设置interval:0之后,第一个和最后一个标签不显示;然后设置showminlabel和showmaxlabel,但是第二个label和倒数第二个label又不显示了
URL: 
https://github.com/apache/incubator-echarts/issues/8090#issuecomment-381045442
 
 
   我也遇到这个问题,查了记录,3.7.1 -> 3.7.2对这部分做了修改,不知道是不是bug
   
   
[https://github.com/apache/incubator-echarts/commit/782a4ebbf1e8bd320d9e36f9d99c89599ec286d6#diff-5db3b822683b0760d08aefcaabe25355R647](https://github.com/apache/incubator-echarts/commit/782a4ebbf1e8bd320d9e36f9d99c89599ec286d6#diff-5db3b822683b0760d08aefcaabe25355R647)


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org



ECharts todo list of next release

2018-04-13 Thread Wenli Zhang
Hi all,

I've created a todo list of our next release, ECharts 4.1.0 at
https://issues.apache.org/jira/browse/INCUBATOR-211 .
I'm not quite sure if I did it right?

I wonder if we could have a project called echarts on JIRA so that we can
better filter this kind of issues later? I didn't find the way/access to do
so, could anyone give a hand?

Thanks!

Zhang Wenli
http://zhangwenli.com


[GitHub] Mignon-han commented on issue #8125: 使用dataset ,维度相同的数据会在X轴重叠

2018-04-13 Thread GitBox
Mignon-han commented on issue #8125: 使用dataset ,维度相同的数据会在X轴重叠
URL: 
https://github.com/apache/incubator-echarts/issues/8125#issuecomment-381041127
 
 
   我也想知道这个问题怎么解决。
   使用`xAxis.data和series[i].data`来指定xAxis的label是允许重复的。
   所以现在的行为看起来像是一个bug。
   
![image](https://user-images.githubusercontent.com/16368087/38720755-0fa7d818-3f2a-11e8-9295-a11b5ca3799b.png)
   
   建议提供参数来控制:
   1. 把x轴label相同的柱子的值相加,只显示一个相同的label
   2. 平铺开
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org



[GitHub] Mignon-han commented on issue #8125: 使用dataset ,维度相同的数据会在X轴重叠

2018-04-13 Thread GitBox
Mignon-han commented on issue #8125: 使用dataset ,维度相同的数据会在X轴重叠
URL: 
https://github.com/apache/incubator-echarts/issues/8125#issuecomment-381041127
 
 
   我也想知道这个问题怎么解决。
   使用`xAxis.data和series[i].data`来指定xAxis的label是允许重复的。
   所以现在的行为看起来像是一个bug。
   
   建议提供参数来控制:
   1. 把x轴label相同的柱子的值相加,只显示一个相同的label
   2. 平铺开
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org



[GitHub] Mignon-han commented on issue #8151: [enhancement]dataset 的每个数据可以支持指定样式

2018-04-13 Thread GitBox
Mignon-han commented on issue #8151: [enhancement]dataset 的每个数据可以支持指定样式
URL: 
https://github.com/apache/incubator-echarts/issues/8151#issuecomment-381038722
 
 
   我还有一个想法,如果想数据和样式分离的话,可不可以在dataset里面加一种新的 `dimension`类型, 
比如说名为`style`,可以用来把样式映射到series的每个数据中。
   ```
   option = {
 dataset: {
   dimensions: ['score', 'amount', 'product', {name: 'scoreStyle',type: 
'style'}],
   source: [
 [89.3, 58212, 'Matcha Latte', {color: 'red' }],
 [57.1, 78254, 'Milk Tea', {color: 'blue' }],
 [74.4, 41032, 'Cheese Cocoa', {color: 'green' }]
 ...
   ]
 },
 series: [{
   type: 'bar',
   encode: {
 x: 'product',
 y: 'score',
 style: 'scoreStyle'
   }
 }]
   }
   ```
   因为`series.data[i]` 是可以是对象,并且可以为每个`data[i]`指定样式。
   我们很想把产品的eCharts版本升级到4.x, 但是为每一个data[i] 
,指定样式的功能实现不了的话,就没办法使用dataset这个强大的功能,也就没必要着急升级了。


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org