How can I ...

VictorUlloa, Sun Jul 21 2024, 12:35PM

Hi, some general questions:

- How can I start a grid in "vertical" mode? (The way it show when I press the "Toggle" Icon in the toolbar?)

- Is there a way I can set the min/max values for a line chart Y axis? Currently the values are auto-calculated based on the data displayed, but for some cases I need to set the chart to start at 0

- Can I set a maximum height for any given chart?

Regards
Re: How can I ...
administrator, Sun Jul 21 2024, 01:10PM

- How can I start a grid in "vertical" mode? (The way it show when I press the "Toggle" Icon in the toolbar?)

This feature is currently available in the bootstrap table that we use, but it hasn't been implemented yet.
https://examples.bootstrap-table.com/#options/card-view.html#view-source

It was planned to be implemented in the next release, but there are limitations to the options as they conflict with some other options. We need to figure that out first. Setting the options does not put the grid in card mode yet.

* Edit * The option has been implemented and is available in the next version.

Re: How can I ...
administrator, Sun Jul 21 2024, 03:03PM

- Can I set a maximum height for any given chart?

There is a chartheight property. But I think this is not what you need?
Re: How can I ...
administrator, Sun Jul 21 2024, 03:04PM

- Is there a way I can set the min/max values for a line chart Y axis? Currently the values are auto-calculated based on the data displayed, but for some cases I need to set the chart to start at 0

Currently, not. Put on the feature request list.
Re: How can I ...
bkafecadm, Mon Jul 22 2024, 05:01PM

Hello guys:

Victor if you modify your project settings to use "private libraries" you can always modify the spdbgrid class and include a line similar to

$r.= ' data-card-view="true" ';

around line 1350.

in that section of the code the bootstrap classes are being set so you can try it...

regarding the zero start you can modify the spchart class to add something along this lines

$r.= ' options: { scales:{ yAxes:[{ ticks: { beginAtZero: true } }] } }, '

arond line 79,

hope this helps

Nice Coding
Re: How can I ...
administrator, Mon Jul 22 2024, 06:53PM

As long as you don't re-install, you can safely use the basic libraries, instead of private libraries. The next release will contain an enhancement for the data-card-view. If you make that change, disable the mobile-cards as they bite each other. In the new implementation PHsPeed switches between both settings, otherwise you will not be able to open in card-mode.
Regarding the scales, we are busy implementing this. Personally, I expect it will be available in the next release too. But this is a safe hack. Once available in the new version, it's a simple property.
Re: How can I ...
VictorUlloa, Mon Jul 22 2024, 09:54PM

Thank you bkfecadm, I did it in the shared library. I know it will be overwritten by future updates, but Aducom told me there will be enhacements to this in the next release...

Regards,
Re: How can I ...
bkafecadm, Mon Jul 22 2024, 10:37PM

Good to know it worked cheesey