C3: "After rendering" or "on rendered" event

Created on 9 Jan 2015  路  8Comments  路  Source: c3js/c3

Is there a feature like this already or anything planned?

C-feature-request resolved maybe

Most helpful comment

This is not working for me. The series are not yet printed on the page until after ajax success finished but I need to upload the SVG back to the server right after the chart is generated.

Not even waiting a few seconds helps because d3 won't finish it's job.

All 8 comments

Not yet, but please let me mark as enhancement.

I just added onrendered callback and I'll release this new feature in the next version v0.4.9 shortly.

v0.4.9 has been released, so please let me close.

Great! Thanks a lot!

when chart is initialized (e.g. chart.generate) , onrendered callback() works.
when chart is redrawed (e.g. calling chart.generate again...as i can't get chart.load to work properly), onrendered callback() doesn't get called.

seems like onrendered() behaves exactly like oninit()?

I don't think so. Can you see this fiddle? http://jsfiddle.net/7kYJu/985/ And it would be helpful if you can give us a fiddle to reproduce. Thanks.

@masayuki0812 I think what @samhuntsocial is saying is right. In the above provided jsfiddle which you have mentioned also shows the same behaviour. Before even the graph is rendered on screen it shows the alert "rendered". Please check your jsfiddle again.

This is not working for me. The series are not yet printed on the page until after ajax success finished but I need to upload the SVG back to the server right after the chart is generated.

Not even waiting a few seconds helps because d3 won't finish it's job.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jstone-ponderosa picture jstone-ponderosa  路  3Comments

MarcusJT picture MarcusJT  路  4Comments

kethomassen picture kethomassen  路  3Comments

wojciechowskid picture wojciechowskid  路  3Comments

snkashis picture snkashis  路  4Comments