-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
General discussion and update #1391
Comments
|
Please let me know the PRs that you would like me to work on, i.e., which can not be merged because of poor test coverage. I will be less available for next 2-3 days, so, my responses in this period will be slower. |
Thank you, will do!! |
PRs which look good but need better test coverage:
|
#1365 has test cases, I will check if these fail with old code and pass with the PR :) |
Fantastic, those look really thorough. I guess it's just #1367 missing tests; I found it a bit confusing but maybe I didn't stare at it long enough. |
Thanks for all your support. I understand the approach with smaller single feature PRs. That will help contributors as well :) In general the approach you are taking is regarding releases is a proper one. It is good to add new features etc., but what users - barring few courageous ones - are looking more is stability. I have been going through the code and will make successive refactors, however I feel most of those are better taken after we have split the library into modules (like D3). One implicit target for that release will be to allow other users to use contributed charts easily without waiting for it to be merged into main release. |
Thanks @kum-deepak! Hope to take a look in the afternoon NYC time. |
I merged 3.0 into develop/master and deleted the branch. Unfortunately GitHub closed all the open PRs for that branch when I did that. I recreated the branch and think I reopened all of the PRs, but lmk if anything is still amiss. |
I am traveling and spending quite less time on my computer. I will be back to my base this Thursday. My responses will be back to normal then. |
Should I target all remaining PRs to develop branch? |
Thanks, I've reopened it! Yes, from now on we'll use the develop branch, standard git-flow. (You could think of the 3.0 branch as a feature branch in that model.) Good discussion on #1408. I'm taking a few days off myself. Enjoy your travels! |
All of PRs opened by me are now based on Next priority for me will be Sunburst failing on D3v5. |
Not sure it's the right place, but I see lots of awesome activities here @kum-deepak
I have no idea how v2 ready they are, just mentioning them so far see if there is a potential interest... |
And I'm abusing again this issue to mention something we might tackle for v3: cleanup the css and split what is "100% needed" vs "choices that made sense but are fighting the site layout" I'm assuming most of the dc users are building their site on an existing framework (bootstrap, Materialize...) and some of the default css from dc are not playing nicely (eg. dc-chart float). By cleaning up the css and only keep what is purely svg chart styling, it would be easier to put charts into an existing grid... and holy grail having a responsive solution out of the box (we aren't that far away, check tttp.eu for example) For compatibility reason, having a separate "layout.css" that contains the removed css rules would probably help the migration... Thought? |
@tttp for both of charts (datatable, wordcloud) please submit PRs. I can help you in making these ready for updated dc and d3. One of the targets post DCv3 is to allow additional usage of additional charts (or using enhanced version of a builtin chart) without those getting released as part of DC. So, additional chart types are definitely welcome. |
Those other charts sound useful, and they are frequently requested. But rather than write and maintain our own version of datatables.js, why not figure out how to properly integrate with it #966? Every time someone asks about it, I ask if they will contribute back their solution, but no one does. Apparently it's not all hard but it may require some ugly hacking. (I am guessing; I haven't tried it myself but I have asked at least 5 times and no response). EDIT: or maybe that's what you're suggesting, since you were very active on that ticket? |
Clarification : i am not using datatable, but have implemented pagination
and column sorting in d3 style
I need to look what is missing to make it generic and will pr
|
@kum-deepak, thanks for moving the PRs. I successfully deleted the 3.0 branch without autoclosing any PRs. (AFAICT - there aren't any notifications when a PR is closed for this reason, so I had to compare screenshots of the PR page!) |
All looks good. |
Hi @gordonwoodhull, the main problem was that datatable performance isn't that great when you have a lot of rows, and a lot of the features they implement is basically crossfilter. with textinputfilter you have the filter adding pagination+sort is a handful of lines |
Thanks @tttp. I see, that's frustrating. Is the problem that you still have to generate a huge table, then it parses the html back into data and only displays part of it? |
I realized that you have tagged the 3.0.0 release on npm. Congratulations!! |
Congratulations to you too @kum-deepak! 3.0 has the charts and widgets that were ready with substantial tests, that you helped port. Now we're at a fork in the road. If you still have time and want to help out with dc.js, do you want to...
I'm here to guide you, should you choose to continue. If you have to move onto other things, I understand that too. This port was a huge contribution and accomplishment! |
Thanks @gordonwoodhull! Your guidance has been really helpful. I will like to take up all of the above. 👍 In addition I will like to add the following (some of which may already be possible):
I would suggest to complete modularizing dc.js before bringing in more charts. Other items can be taken in parallel. Happy to let you prioritize the sequence. |
I have a library I use in a few projects to add filter saving and applying to dc. https://github.com/umbra268/dcFilterRememberer It doesn't apply to only specific chart groups as it does it on all charts in the chart registry and it allows you to use the browser's back and forward buttons to undo/redo filters. |
is the sunburst chart in 3.0.3 complete? I see it renders when the group keys are reduced to a single value. However when it's reduced to multiple values and I use a value accessor to use one of them it fails. |
@mukherjeea please open a new issue with a link to example (jsfiddle or similar). Thanks! |
Just created a new issue. Thanks in advance! |
Hi @gordonwoodhull, Yes, with datatable, you need to feed it with all the rows so it can then do the filtering and sorting of the rows. https://github.com/TechToThePeople/mep/blob/master/index.html#L494 |
Thanks @tttp. Seems like this option should help performance, but I don't know if it helps enough: https://datatables.net/examples/data_sources/js_array You're right that it's duplicating a lot of crossfilter functionality, but I expect the larger performance problem is generating a lot of html and then parsing it. DOM slow, JavaScript fast. Seems like we could remove |
Hi,
I did try this path, but don't recall what got me blocked.
I might be that I found easier to add a handful of js lines to mimick the
sort + pagination rather than duplicating the full db+adding datatable.
…On 10 July 2018 at 01:03, Gordon Woodhull ***@***.***> wrote:
Thanks @tttp <https://github.com/tttp>. Seems like this option should
help performance, but I don't know if it helps enough:
https://datatables.net/examples/data_sources/js_array
You're right that it's duplicating a lot of crossfilter functionality, but
I expect the larger performance problem is generating a lot of html and
then parsing it. DOM slow, JavaScript fast.
Seems like we could remove dc.dataTable from the equation and write a
plug-in that just fetches the data and feeds it to datatables.js
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1391 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAH1qpXJPuAW7X_zTLPQfJsZiL69Ffm2ks5uE-FFgaJpZM4TBtsS>
.
|
I started a new project https://github.com/dc-js/dc.datatables.js It's just the skeleton of the idea, but it mimics the interface of Here's an example, swapping out @tttp or anyone else, I'd be curious if this works for your use-cases. If so, please consider contributing, since this is just a bare-bones implementation. Some features from |
Hi gordonwoodhull / deepak, I am trying to recreate the download-table.html. I am not able to do so. I get only the buttons for download and none of the charts are populating. I am new to d3 and not much aware of what is the issue. Can you please let me know if it is a browser issue or any other issue? Appreciate your help ASAP. Thanks, |
Hi @Ushaardhya, Do you mean this page does not work? http://dc-js.github.io/dc.js/examples/download-table.html Or do you mean that when copying the files to your own server it doesn't work? Any errors in the browser console? |
I was asking about the browser console. Open up the developer tools in your browser and look at the console there. I suspect you will see some error there. |
I see, thanks @Ushaaradhya. That explains a lot. It looks like some code in var dir = 'examples'; In general, I don't really expect people to use the examples as-is. The intention is to provide example code rather than a starting point for your application. But it would be a good idea to make the code more resilient for cases like these. |
Thank you very much @gordonwoodhull for the reply. |
https://dc-js.github.io/dc.datatables.js/ this sample not working in IE 11. In order to get it working with your sample, do i need to downgrade DC.JS to lower version? |
Thanks for the report @svgavathe, I've created an issue on the repo, linked above. dc.js 3.0 and dc.datatables.js should still be compatible with IE, but probably some ES6 crept into the code somewhere. |
Ah, got it, yes, it is a general dc.js issue, not just about dc.datatables.js. http://dc-js.github.io/dc.js/ fails as well. D3v5 introduces dependencies on some ES6 APIs. See #1507 for details. |
This ticket was specifically for discussion of dc.js 3.0. IMO there is no need for a "general discussion" ticket, although this did attract a lot of random questions and discussion. 😄 |
We can use this for general discussion and status. Please put 'discussion' label on this.
The text was updated successfully, but these errors were encountered: