Comments (5)
This should be possible. But the way the code is structured currently, it may prove to be a little difficult with the coloring options. I'll look into this.
from go-pretty.
Even if flipping is not possible, adding a completely new table configuration would be equally good.
from go-pretty.
Hi! I'd like to work on this issue.
My approach would be to add a method in table/table.go, which either simply swaps the contents of the columns and the rows, or which would create an entirely new table and then fill up the rows and columns invertedly. Is there anything that I should take into account, such as any side effects that could happen?
from go-pretty.
@lepasq Inverting is part of the task. The other would be to reconcile the styling, Column/Row configs, the sorting, etc. If you want to take a stab at it, please try. But I fear that until the current logic is changed to treat each cell as its own object with all the properties embedded in it, inverting it may be too difficult.
from go-pretty.
Closing this as I haven't been able to make any progress on this, and I haven't seen anyone else request for this feature. Please feel free to reopen if you feel otherwise.
from go-pretty.
Related Issues (20)
- Progress bar duplicated HOT 1
- align issue when set max width for non-ascii char HOT 1
- Color for autoindex HOT 1
- [progress v6] Question: Using SetOutputWriter(os.Stderr) ignore my own errors in the console HOT 1
- Allow border colors to be set in style HOT 5
- Vertical AutoMerge keeps unnecessary whitespace when a merged row value is wrapped by WidthMax HOT 1
- Specify row color on table.AppendRow HOT 2
- Header autoMerge bug HOT 10
- Table header separator HOT 1
- [BUG] Setting style and title at the same time will cause problems with the output HOT 12
- Hightlighting specify row HOT 2
- Cursor is moved while monitor progress in windows terminal HOT 2
- Progress - dump disorderly if the number of items to be monitored is bigger than the lines of one screen HOT 3
- Go get github.com/jedib0t/go-pretty/v6 have a problem HOT 1
- Table - Allow `RenderCsv` to be formatted with tabs instead of comma HOT 5
- Markdown table row with multiline string adds <br/> HOT 2
- column auto merge have minor wrong behavior HOT 3
- Why carriage return character '\r' is dropped when rendering? HOT 6
- The upgrade from v6.4.0 to v6.4.1 results in empty table content when used in our product. HOT 10
- Github lacks enthusiasm reports, which would be necessary with your go-pretty!!! Absolutely fantastic!!! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-pretty.