asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.89k stars 297 forks source link

Bar chart support #278

Open billziss-gh opened 7 years ago

billziss-gh commented 7 years ago

I am trying to chart the following data using a bar chart:

//ntfs
file_create_test,1.94
file_open_test,0.45
file_overwrite_test,1.14
file_list_test,0.41
file_delete_test,1.03
//winfsp-t0
file_create_test,1.08
file_open_test,0.28
file_overwrite_test,0.30
file_list_test,0.61
file_delete_test,0.45
//winfsp-t1
file_create_test,0.95
file_open_test,0.22
file_overwrite_test,0.22
file_list_test,0.59
file_delete_test,0.34
//winfsp-tinf
file_create_test,0.97
file_open_test,0.20
file_overwrite_test,0.22
file_list_test,0.59
file_delete_test,0.33
//dokany
file_create_test,1.64
file_open_test,0.67
file_overwrite_test,1.64
file_list_test,1.38
file_delete_test,0.91

My expectation is to see a bar chart with x-labels: file_create_test, file_open_test, etc. and individual bars for each of the series: ntfs, winfsp-t0, etc.

I am seeing instead only bars for the first label file_create_test. Here is a sample:

Is this a supported scenario for AsciidocFX charts? Am I misusing AsciidocFX? Is there another way to achieve what I want?

This is on OSX with AsciidocFX version 1.5.5.

rahmanusta commented 7 years ago

Hi @billziss-gh ,its usage should be like here https://github.com/asciidocfx/AsciidocFX/wiki/Chart-Extension#bar-chart

If I understand right you want to make grouping, but we don't have it

billziss-gh commented 7 years ago

Thank you for the quick response and thank you for the awesomeness that is AsciidocFX. Any chance of having this feature added?

I note that line charts and scatter charts properly render the data above, but bar charts do not.

rahmanusta commented 7 years ago

You are welcome Bill. If you could send me a sample graphical output to get it clear, I could try to implement it.

billziss-gh commented 7 years ago

I used Excel to recreate what I would like the final result to be (excluding colors and other details).

excelchart

billziss-gh commented 7 years ago

BTW, I wanted to add that Excel calls the above a column chart. If you decide to add this functionality please also consider adding what Excel calls a bar chart.