el / canvas-table

Fast table implementation in Canvas
MIT License
68 stars 14 forks source link

Additional Formatting Options #17

Open Mebot2001 opened 2 years ago

Mebot2001 commented 2 years ago

Thanks for implementing canvas-table. I have been able to produce this table.

https://cdn.discordapp.com/attachments/1000156390276476968/1004640856009097227/ehp-chart.png

I want to yield this table (produced in google sheets).

https://cdn.discordapp.com/attachments/1000156390276476968/1004858972626497628/unknown.png

What sort of formatting options would I need to be aware of, to be able to:

Rotate the headers, and apply a set of "row headers,"

Apply a top-right "corner title,"

and then shade by value?

el commented 2 years ago

You can pass a custom cell. To have a custom background. But rotation is not supported at the moment.

Mebot2001 commented 2 years ago

Rotation is not supported. Good to know. Thanks.

How could I force the columns to have a constant width?

el commented 2 years ago

You can pass minWidth and maxWidth

Mebot2001 commented 2 years ago

Would that be in Options ?