-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Is there any way to set custom style on DataBar Conditional Formatting #1462
Comments
Thanks for your issue. Currently, the library doesn't support creating a conditional format with a solid color data bar style. I will consider adding this feature support in the future. |
I have added support for creating a conditional format with a solid color data bar style. Please try to upgrade to the master branch code, and this patch will be released in the next version. Now you can specify solid color by err := f.SetConditionalFormat(sheetAlias, someRangeRef,
[]excelize.ConditionalFormatOptions{
{
Type: "data_bar",
BarColor: "#A9D08E",
Format: solidFillStyle,
Criteria: "=",
MinType: "min",
MaxType: "max",
+ BarSolid: true,
},
},
) |
Thanks a lot! |
- Support creating a conditional format with a "stop if true" rule - Support set border color and create solid color for the color data bar - Fix incorrect cell type when modifying string cell with the time number - Update unit test for the add pivot table to avoid pivot table range overlap
- Support creating a conditional format with a "stop if true" rule - Support set border color and create solid color for the color data bar - Fix incorrect cell type when modifying string cell with the time number - Update unit test for the add pivot table to avoid pivot table range overlap
can i get |
I'm trying to set custom style on a conditional formatting
data_bar
I'm using the code like below:
I'm expecting the data_bar to be filled with solid color , as defined in
solidFillStyle
,But what I get is a gradient-filled data_bar
Seems that it will use an internal style for data_bar, which uses gradient fill, and any custom style will just be ignored
Am I doing something wrong here ? thank you.
go version I'm using
lib version:
The text was updated successfully, but these errors were encountered: