Open gibbsfromncis opened 6 years ago
@wmbutler do you want to use different Chart library or just redesign this chart?
If redesign only I suppose we won't get much changes - only colors and tooltip. Or these changes exactly what you want to get in result of this task?
I would like logarithmic horizontal scale. Otherwise orders get cramped on the left side and look very deep, and the right side gets stretched and looks thin.
It would also be nice if you could zoom in or out
Are we suggesting that we rebuild this from scratch or use some existing software? Is it realistic to have this completed in July? I view this as a pretty low priority unless you are jus tplanning to style the existing market depth chart.
@wmbutler It was a part of Exchange redesign (I was assigned to task about Trading View restyle and idk why Market Depth restyling was included too). I'm not sure there is any reason restyling it without replacing it for more nice library. Lets unassign myself and put it for later. What do you think?
I think we have more present needs at the moment, as the current market depth chart works. As it needs some hands-on I think it would be better to find a nice library later on that does this in a really nice manner, and that would take some implementation time.
Maybe adding this to a task later, as I still think we should replace it at some point.
@startailcoon agreed.
Can I claim this? Won't be able to deliver for 180919 though.
@kapeer42 please make sure you have all information needed before claim this
@kapeer42 important for you to work closely with @startailcoon and @gibbsfromncis for UX with ANT.
I destroyed my computer by accident, couldn't finish the work for today, my bad. Could not comment before today too, sorry for the short notice :( Will resume work as soon as I recover (a couple of days tops probably).
Should we remove your assignment on this @kapeer42 , or will you have it ready for next sprint of 2018-10-17?
@startailcoon It will be ready
Looking pretty awesome. One suggestion:
I think you can release this with that change in place.
I'm not a fan of adding yet another plotting library without also removing Highcharts. If we replace Highcharts with Victory in the depth chart, we should also add issues to do the same for the three remaining components that use Highcharts:
Still work in progress (banner size not addressed yet)
@wmbutler The ANT buttons seems kinda out of place IMO. Should I mimic the initial issue buttons style?
@MarkoPaasila I think that rendering a logarithmic price axis while keeping the chart centered on the mid market price + handling zoom levels won't be a trivial thing, if this is still required I think we should open a new issue for it.
@wmbutler highcharts requires a paid license if I'm not mistaken
Looks like we'd qualify as a not for profit.
Oh well, my mistake, should have read more :(
I guess I will scrap the victory implementation and just update the current highcharts one.
Also there was these comments @startailcoon
I think it would be better to find a nice library later on
and
@gibbsfromncis
I'm not sure there is any reason restyling it without replacing it for more nice library
@kapeer42 What would you like to do? Happy to add the hours to improve it. Let us know.
I'm fine with moving everything to victory since you've already made good progress on the depth chart, the other components are non-essential anyway imo and apart from the tree map quite easy to reimplement.
I'd be interested to know how big it is though compared to highcharts.
@svk31 Done on master branch:
victory + new depth chart code adds roughly 300kB to the production bundle's javascript.
It's roughly 600kB when comparing the whole bundle (including .map, etc..).
These two estimates are done while keeping react-highcharts and the old depth chart code.
Full bundle details, if you want to compare individual files (for example exchange.js increased by 8k): Without victory: https://ptpb.pw/godI With it: https://ptpb.pw/fLSB
┌─────────────────────────────┬──────────────┬─────────┐
│ name │ children │ size │
├─────────────────────────────┼──────────────┼─────────┤
│ bitshares-ui-style-guide │ 365 │ 193.24M │
├─────────────────────────────┼──────────────┼─────────┤
│ victory │ 131 │ 124.57M │
├─────────────────────────────┼──────────────┼─────────┤
│ bitsharesjs │ 43 │ 59.00M │
├─────────────────────────────┼──────────────┼─────────┤
│ react-highcharts │ 1 │ 28.38M │
├─────────────────────────────┼──────────────┼─────────┤
│ intl │ 0 │ 21.20M │
├─────────────────────────────┼──────────────┼─────────┤
│ react-datepicker2 │ 19 │ 14.27M │
├─────────────────────────────┼──────────────┼─────────┤
│ react-intl │ 6 │ 14.01M │
├─────────────────────────────┼──────────────┼─────────┤
│ steem-js-api │ 16 │ 7.44M │
├─────────────────────────────┼──────────────┼─────────┤
│ bitshares-report │ 10 │ 5.61M │
├─────────────────────────────┼──────────────┼─────────┤
│ react-foundation-apps │ 8 │ 4.88M │
├─────────────────────────────┼──────────────┼─────────┤
@svk31 @wmbutler I don't feel comfortable making a decision over a library integration but since no answer and sprint ends tomorrow. I'll finish the victory implementation and port the existing charts.
The preview you post looks good imho @kapeer42 I'll need some review by @svk31 to sign this of.
cc @wmbutler
@kapeer42 ?
@kapeer42 can you submit a PR?
Submitted PR needs review
@sschiessl-bcp I can't see that we an open PR for this issue anymore, was the PR rejected?
@sschiessl-bcp I can't see that we an open PR for this issue anymore, was the PR rejected?
Not that I know, can you see if you can find the old PR? Or possibly the branch in kapeers repo for it?
Open for claims
@startailcoon, do you want that depth chart will be redesigned with victory library and all charts written with react-highcharts library will be ported to victory?
I'd rather check first if kapeer still has this, and also wait for @gibbsfromncis regarding new UX before tackling this.
This issue was a part of #1484 and was moved to separate issue
Suggestions for use design from GDEX: