Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
S├ębastien
@lorem--ipsum
Hello @CatBakun , unfortunately we don't support bower since v2. NPM is our favorite way of installing stuff :)
Kevin Arbi
@karbica
Hello! This is an awesome library, thanks for all the hard work. I just wanted to ask a question about click handling. I read multiple issue threads and the conversation that was had in this chat about it but I still couldn't come to a conclusion. I was able to add a click handler to the dots but is it possible to add the click handler to the columns as well/instead? Here is my example... http://codepen.io/Karbica/pen/WoobJe
chaosmail
@chaosmail
Hi @karbica i just checked the source and I didnt spot support for click events on columns. can you confirm this @lorem--ipsum ?
Kevin Arbi
@karbica
@chaosmail thanks for taking a look
S├ębastien
@lorem--ipsum
I think columns don't support this indeed... thanks for the kind words @karbica
:)
chaosmail
@chaosmail
to be honest, I don't see click support anywhere else but in the EventManager ('click', // on click on a data point or column, 'dblclick', // on double click on a data point or column)
chaosmail
@chaosmail
I see, we trigger the click event when clicking on the tooltip dots. Alright, that's why this is not working on columns.
Kevin Arbi
@karbica
thanks again for digging into that. yeah, i thought the columns (or any form of data point) was also included in the click handlers but it turns out it was just the dots. i can make ticket for this and possibly take a look myself if i have time. once again, thank you both. +1
chaosmail
@chaosmail
Nice great, yeah please open an issue. And if you are brave you can as well send a PR, it doesn't seem very difficult to fix this. Contributions are always welcome. Let me know if you need any help ;)
Proto Hipster
@mightystassen_twitter
Hi folks. I'm very new to the library, but I'm hoping one of you can help me... I'm populating the chart from an ajax call.
I get the following error this.sets[t.dataset].values.map is not a function
which I guess means that it is trying to map data before it exists.
how do I defer this until the ajax data comes back from the server?
chaosmail
@chaosmail
Hi @mightystassen_twitter just define an empty dataset with the same structure and then overwrite with the actual data when it is available
damtsberg
@damtsberg
Hi all, is there any way to get stacked column-charts working on v2? I'm trying to figure a way out, cause i would love to use the set of functions of v2 but that feature of v1 :/ ( can't get v1 up and runnign either, cause i can't find the corresponding versions of d3 and agular [uptodate versions wont work])
Thiago Medeiros
@medeirosthiago
Hey guys, is the documentation off?
GitHub pages if off... I belive :(
is*
Thiago Medeiros
@medeirosthiago
I can't access the documentation, is there some offline resource?
chaosmail
@chaosmail
Thiago Medeiros
@medeirosthiago
:smile: thank you @chaosmail
chaosmail
@chaosmail
You can also find some demos on my codepen profile http://codepen.io/chaosmail/
Thiago Medeiros
@medeirosthiago
That's awesome man, thank you! :+1:
xlucasdemelo
@xlucasdemelo
Hi everyone, i'd like to know if there is any way to handle an after zoom event .
xlucasdemelo
@xlucasdemelo
n3-charts/line-chart#540
xlucasdemelo
@xlucasdemelo
@chaosmail @damtsberg
Gibbon
@gibonu666_twitter
Hey, any way to create stacked column charts and conditional coloring of columns work in V2? I remember these features from V1 but due to angular and d3 dependencies I have to migrate to V2 now. Or any ETA of these features?
xlucasdemelo
@xlucasdemelo
Is there any way to plot a trendline chart ?
@chaosmail @damtsberg
xlucasdemelo
@xlucasdemelo
n3-charts/line-chart#548
chaosmail
@chaosmail
Hi @xlucasdemelo the only way to achieve this is add the trendline yourself as a dataset
xlucasdemelo
@xlucasdemelo
Hi, i'd like to know if there is a way to plot a dashed line in n3 ?
@chaosmail
@damtsberg
xlucasdemelo
@xlucasdemelo
I found a way, looaking at the github source
the documentation http://n3-charts.github.io/line-chart/#/docs is a little old i guess
chaosmail
@chaosmail
yeah the docs are based on the last stable release
xlucasdemelo
@xlucasdemelo
is there any option to intercept the redraw of the series when clicking the labels ?
@chaosmail
@damtsberg
clicking the legends*
cscrum
@cscrum
Hi..is there any way to set the color of a particular series dynamically?
cscrum
@cscrum
image.png
I am calculating several series, line of sight profiles pulling terrain and clutter data from data sources based on a position on a map from several different points. The number of graphs drawn depends on proximity to those points. On the map, I am showing each line from the point to my user as a different color and I'd like the corresponding line on the line chart to be the same color. On the map, the color is randomly generated. I don't care what it is as long as it is different from all the others. I'd like for the line on the corresponding profile to be the same so it is easier to correlate. Pic attached as an example.
in the pic, I'd like the red line on the graph to be made green like the line on the map. Since I don't know how many graphs I will have and I'm doing this with an angular repeat in the html, I can't set up different profiles for each one. I need to be able to adjust the profile per graph as the data is generated
ibering
@ibering
Bildschirmfoto 2018-06-19 um 09.15.23.png
Hi, it is possible, to change color of area depending on y-value
nguyenchanh2201
@nguyenchanh2201
live-chat.gif
Hi all, can you help me ? pls hint to me how to create it (line chart - update value and fix overflow for x value)
thank you !