Problem/Motivation

When we make a new view with chart style , it don't allow customize bar colors. the color list is painful.

Proposed resolution

Maybe a setting field that allow add a comma separated list of web colors.
The best solution maybe a list of colors with a add buttom to add new colors.

Remaining tasks

Implement this.

User interface changes

Add a text field to add a comma separated list of colors or a color list in views style setting form.

API changes

N/A

Data model changes

N/A

CommentFileSizeAuthor
#7 charting-2979850-7.patch5.91 KBsaesa

Comments

psf_ created an issue. See original summary.

  • psf_ committed 4fab272 on 8.x-1.x
    Issue #2979850 by psf_: Allow chart views style setup bar colors
    
psf_’s picture

Title: Allow chart views style setup bar colors » Views style setup bar colors with a list form element
Version: » 8.x-1.x-dev
Category: Task » Feature request
Issue summary: View changes
psf_’s picture

Issue summary: View changes
psf_’s picture

I found some examples of how implement the color list with a "add more" button, but I can't do it work:

How to add addmore/remove buttons for some fields using drupal 8 form API ?

If someone like improve this...

saesa’s picture

Assigned: Unassigned » saesa
saesa’s picture

Assigned: saesa » Unassigned
StatusFileSize
new5.91 KB

I tried to make the form using ajax but I have not managed to generate the color field again. This patch does not work at all.