Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with clip paths #73

Open
john-clarke opened this issue Jan 24, 2014 · 0 comments
Open

Working with clip paths #73

john-clarke opened this issue Jan 24, 2014 · 0 comments

Comments

@john-clarke
Copy link

I've tried to replicate this simple example http://bl.ocks.org/mbostock/4062844 which uses clipPaths to format line segments. But I'm running into trouble figuring out how to do the chaining properly in d3.chart. I think the issue might have to do with the datum(data) instruction and/or the fact that the series line is actually rendered twice.

The end goal is to render the following chart https://resources.cisnet.cancer.gov/projects/#shg/tce/current-prevalence/opts/mode=period-cohort;interval=5;show_all_series=true;real_series=1890;show_reference=false;reference_series=1890;sex=male;render_method=chart;advanced=true;show_reference=false using clipPaths so that I can re-introduce D3 transitions. Currently, they don't transition well because the series line is actually rendered as two segments using the defined() method.

Any hints would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant