It is currently 21 April 2025, 13:49 Advanced search

Another Chart ?

Questions and answers on how to best use Instant Developer

Another Chart ?

Postby john w » 12 January 2024, 16:46

Hopefully a simple question and answer.I need simple column chart. I would like to use the charting native to InDe. I can get a bar chart. How do I get a column chart?
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Another Chart ?

Postby ljwilson » 12 January 2024, 19:34

Define "native".
I see these in inde 23.0
2024-01-12_14-32-37.png
2024-01-12_14-32-37.png (3.36 KiB) Viewed 1354 times


...jack
ljwilson
 
Posts: 783
Joined: 26 November 2013, 14:15

Re: Another Chart ?

Postby john w » 12 January 2024, 20:44

It uses OxyPlot now by default. If you look in the Chart Types it has bar chart not a column chart. Not in the list.

I dont want a Google chart.
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Another Chart ?

Postby ljwilson » 12 January 2024, 22:44

According to this:
https://doc.instantdeveloper.com/eng/default.aspx?artid=5e1c00f3-b94c-4ab8-858c-510cc60c7a4e&lang=eng

oxyplot is only used in c# projects, for books when you have a graph in a PDF you are creating. Is that what you are doing?

If so it appears fairly limited compared to some of the other libraries.

...jack
ljwilson
 
Posts: 783
Joined: 26 November 2013, 14:15

Re: Another Chart ?

Postby john w » 13 January 2024, 1:29

I just need a column chart and do not want to Google charts. Column does not seem available as chart type. Is there a way to make a bar chart a column chart?
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Another Chart ?

Postby ljwilson » 13 January 2024, 15:22

You can use JQPlot, and set the direction to horizontal. Column chart is same as Bar chart but horizontal instead of vertical.
Look at my example:

JQPlot Customization Example
https://forum.instantdeveloper.com/viewtopic.php?f=7&t=71165&p=124283&hilit=chart+example#p124283

And uncomment the following in the Charts Form Load event:
2024-01-13_10-20-15.png
2024-01-13_10-20-15.png (27.11 KiB) Viewed 1312 times


Note this example has some custom folder .js files too for styling, which you may or may not want/need.

...jack
ljwilson
 
Posts: 783
Joined: 26 November 2013, 14:15

Re: Another Chart ?

Postby john w » 13 January 2024, 18:14

Thanks I understand now the .setDirection does it.
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA


Return to Tips & Tricks

Who is online

Users browsing this forum: No registered users and 15 guests

cron