-
Notifications
You must be signed in to change notification settings - Fork 356
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
Question on how to add lines for 3D effects in the bar chart #1455
Comments
#397 looks like this a bit. |
I could not find the right way. The |
Thank you, watnab. I did make what I wanted. |
https://jsfiddle.net/t9rpgnLs/4/ The id of the elements returned from It will be easy if the library preserves the id. |
When there was only one data group, you applied Gradient to each data similar to your method. |
billboard.js/src/internals/color.js Lines 92 to 100 in c9906e1
Suggestion: const allTiles = config.color_tiles();
const tiles = allTiles.filter(node => ! node.id); //ignore node if it has id.
const colorizedPatterns = pattern.map((p, index) => {
const color = p.replace(/[#\(\)\s,]/g, "");
const id = `${$$.datetimeId}-pattern-${color}-${index}`;
return colorizePattern(tiles[index % tiles.length], p, id);
});
allTiles.forEach((node, index) => { //append node if it has id.
const color = "red"; //dummy
if (node.id) colorizedPatterns.push( colorizePattern(node, color, node.id) );
}); |
Suggestion: The reason why the library overwrites id of tile(gradient) may be that the number of color patterns can be greater than the number of tiles. https://github.com/naver/billboard.js/wiki/Migration-Guide-to-v2
|
The way already exists to preserve(ignore) tile(gradient) having id. #225 |
I will withdraw my suggestion to preserve tile having id. |
Description
There was a request to express the 3D effect by adding a line to the right of the bar chart.

I couldn't find an option on the Billboard chart, so I made it as below.
I wonder if it is a function that is supported on the Billboard chart, and if not, I hope you will add it.
Steps to check or reproduce
https://jsfiddle.net/s0215/o54wrx3k/
The text was updated successfully, but these errors were encountered: