• Resolved Artyom

    (@ryabchuk)


    I created a table where the columns are the names of the values, and the rows are the values. But when I create a chart in the legend values of columns, not rows. That is, I need to swap the series and the legend in the chart. How do I do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Artyom

    (@ryabchuk)

    To clarify, I want to swap the string in row with the columns in the chart.

    • This reply was modified 2 years, 10 months ago by Artyom.
    • This reply was modified 2 years, 10 months ago by Artyom.
    • This reply was modified 2 years, 10 months ago by Artyom.
    • This reply was modified 2 years, 10 months ago by Artyom.
    Plugin Author wpDataTables

    (@wpdatatables)

    Hi Artyom,

    Sorry for inconvenience,

    You will need to create different structure of your table to make this happens. So first column will be string type column and data from this column(data from rowsof this column) will be used for creating x-axis in the chart. All other columns have to be integer or floats so next column will be named row1(you will call it for your needs and it will contain numbers from first row from your initial table, next will be row2 with numbers of second row from your initial table…)

    String column row1 row2 row3
    col1name 5 6 7
    col2name 1 2 3
    col3name 11 20 11

    Like this you will get chart like you need.
    Best regards

    • This reply was modified 2 years, 10 months ago by wpDataTables.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Swap columns with rows in chart’ is closed to new replies.