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

added overview chart initialisation #301

Merged
merged 7 commits into from
Aug 11, 2015

Conversation

frenchbread
Copy link
Contributor

@apinf/developers Here is the hot fix regarding overview chart. Chart initialisation function was somehow removed from develop branch after merging. Here is the fix, tested it and generally it works but area selection does not force chart refresh now, still zooming works.

@frenchbread
Copy link
Contributor Author

Tested this one again. And it turns out that the code refactoring that we did (dividing code for rendering charts to separate functions like drawChart, parseData, renderCharts) somehow does not let the lineChart to refresh when some filtering or selection has been made on a overview chart.

@brylie Any thoughts at his point? I think we can leave it like this or return to one-function view to have this functionality present.

@bajiat bajiat added the WIP label Aug 4, 2015
@frenchbread frenchbread removed the WIP label Aug 7, 2015
@frenchbread
Copy link
Contributor Author

@apinf/developers This PR is ready to be merged.

@@ -136,19 +136,36 @@ Template.chartsLayout.created = function () {

var chart = dc.lineChart("#line-chart");
var countryChart = dc.barChart("#bar-chart");
var overview = dc.barChart("#overview-chart");

chart
.width(1140)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if you omit the chart width? Does the chart become responsive with regards to the parent container width?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brylie Fixed this one. Chart's width is dynamic and fits the parent container on load. Still not responsive though.

@frenchbread
Copy link
Contributor Author

@brylie When I remove width(), this happens:
chart
so it does not respond to parent container width.

brylie added a commit that referenced this pull request Aug 11, 2015
@brylie brylie merged commit 8cac415 into develop Aug 11, 2015
@brylie brylie deleted the hotfix/overview-chart-to-dashboard branch August 11, 2015 10:03
@saralavanip saralavanip mentioned this pull request Feb 15, 2017
9 tasks
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

Successfully merging this pull request may close these issues.

None yet

3 participants