Open bjlbernal opened 10 years ago
Hi, sorry it's not possible now. I'll try this kind of chart as a plugin of C3 in the future.
Unfortunately I am not in the position to wait idle. I upgraded our fork and began to build timeline/gantt charts into the 0.3.0 architecture. I have the lanes and the lane data for the main chart area. The current issue I am running into is generating readable lane labels on the left of the y axis. I believe my roadblock is the function c3_axis
.
Providing string tick values fail in the function axisY
where the translate attribute is being generated. The y(d)
function in there returns NaN
.
My work around of setting the axis.y.tick.values to an empty array and then generating the labels separately cause another issue of pushing the body of the chart off to the right instead of it being scaled/resized to fit the remaining space.
I'm not sure how to share my progress so far, but any conceptual suggestions you have for making the y axis show defined string lane labels instead of numerical ticks would be helpful.
I seem to have found a solution to my problem. Since the concept of plugin code is on the table, I will hold off on submitting a PR until I have it reworked as plugin. Has a standard for c3 plugins been started yet?
@bjlbernal The plugin architecture is kind of in-progress at the moment; if you wish to contribute to that effort, we'd welcome the help! More info at #351.
Adding on hold
and closing, will reopen once plugin infrastructure is in place.
Reopening after discussion with @masayuki0812 re: how to handle on hold
issues.
Is this a thing that might happen?
Is the chart type of timeline/gantt part of the future plan of c3? I have been trying to implement it myself with minimal code changes, but it is not looking as good as I would like.
An example of what I am aiming for is here: https://developers.google.com/chart/interactive/docs/gallery/timeline#BarsOneRow