dataBar conditional formatting requires color even though it's not specified in the type definitions (index.d.ts) #2816
Unanswered
hir0shi-yamashita
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using conditionalFormatting with type: 'dataBar' in ExcelJS, the index.d.ts file suggests that the color property does not exist. However, when creating a file without specifying the color, the resulting file is corrupted and cannot be opened by Excel. Setting the color property resolves the issue.
It seems that the type definitions might be incorrect, as color appears to be required for dataBar formatting to work properly. Could you please confirm if this is an issue with the type definitions?
Steps to reproduce:
Apply conditional formatting with type: 'dataBar' without specifying a color.
Save and open the file in Excel.
Expected behavior: The file should work correctly without needing to specify color since the type definitions do not require it.
Actual behavior: The generated file is corrupted unless a color is explicitly set.
Since I'm not a native English speaker, I apologize if my wording is unclear.
Beta Was this translation helpful? Give feedback.
All reactions