B4J Question Two scales on the same chart ?

sesi

New Member
Hello People,

I have to create a Programm that should be able first of all to open a .txt file (this i should be able to do) .

How do I set the format of measurements that i want to write in the .txt file in order that the Programm can open(read) it ?

The file has inside measurements of temperature and pressure according to the time. So on my Chart(graph) i should be having on the X-axis the time (how do I set the Format of time ?) when the respective value was measured and on the Y-axis (on the left side of the Chart) the scale of temperature. At the end (so to say) of the X-axis parallel to the scale of Temperature should be the scale for pressure (on the right side of the Chart). I like to be able to display on the Chart in the same time the value of the temperature at the certain time and the value of the pressure at the same time.

Is this possible in B4J?

I would be very thankful for some hint.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Reading a text file is simple. You can use File.ReadList to read each line of text as a list entry and then parse it.

You can also use StringUtils.LoadCSV to load a CSV file.

There are several charts related solutions. This one is implemented with Canvas so you can customize it as needed: https://www.b4x.com/android/forum/threads/charts-framework.34710/
 
Upvote 0

sesi

New Member
Thank you first of all for the reply.

But all the Charts there they have on the Y-Axis only one type of measurement. In my case should on the left side of the Chart as well on the right side a scale. My question is how to program this or what would be the solution ?
 
Upvote 0

sesi

New Member
Ok, im going to try it and if it works i will upload it here for the next ones that needs it :)

Thank you for your time !
 
Upvote 0
Top