What are exactly the values for global Date
?
Working fine with my blocks if the variables are these.
What are exactly the values for global Date
?
Working fine with my blocks if the variables are these.
I will put together an AIA to let you know what's going on. I'll be back in a sec!
there are about 40 strings of data (so far) like this:
01/31/2022 13:15 20:00,120,140,145,02:15,81,95,99
The dates are "01/31/2022" after segmenting
This is an AIA for you.
LineChart.aia (13.3 KB)
Try to go through it and see what bugs you have. The AIA was tested successfully.
it took your years 2017 - 2021 which were meant to be strings and changed them into "2,018 2,020" notice that?. Evidently axis 0 is the X axis and according to my last error it wont allow me to use strings like "01/31/2022"?
Attach your AIA files here so that I know what strings are the errors?
Try to replace the dates with a number instead?
Thanks for that but the dates are vital information and without them I may as well not have a graph
You now appear to understand how to set the data table...
For your dates, did you read and follow this:
A lot of information to research just to display a string along X axis
is this saying if I put in the CSS get slot : hAxis: {format: 'M/d/yy', gridlines: {count: 15}}
that I can use my date strings?
The error message is a bit mis-leading. I believe your issue is that your "numbers" in selections 7 and 8 are strings and need to be numbers. Here below a reworking of your blocks and the chart output.
You will see I have reduced your dateString to just the date, and I multiply each of the "string numbers" by 1. This was covered in my extension post: 📊 [Free] ChartMakerPlus - an extension to make google charts - #14 by TIMAI2
I have also thought about this. When I used numbers instead of text, everything works.
Thank you @TIMAI2 . I have read a few articles describing the translation of text to real or integer and did have it on my mind but the error message threw me. I have implemented much of what you gave and will work on it again tomorrow. We are 9 hours apart. It is 19:30 here hAxis / Xaxis and I believe your 10:30?
Anyway I am going to get into the hAxis position with a movie and my lady.
Thanks again, we will see what tomorrow brings
05:00 I began and finished 06:30 with this result:
From these blocks:
Could not have done it without you showing me the logic of Chart construction @TIMAI2
My first app is now finished due to you helping 3 times. From total newbie to 4,000 block app in 8 weeks is one great feeling.
Many thanks for the guidance.
I now have a functioning Graph thanks to @TIMAI2.
I put the blocks into my app on a screen all its own. My Web viewer is in a HorizontalScrollArrangement which is inside a VerticalScrollArrangement
The arrangements have no affect on my problem.
#1 problem is that the graph will not appear when I go to my graph screen. If I rotate the screen a couple times it will appear:
The graph is in a 1 second timer and I even tried refreshing the WebViewer/Graph 3 times but no change even though I refresh the WebViewer:
#2 problem is that I get a view like this:
IS there any way to get the dates to be fully exposed?
Ideas appreciated
I am not surprised
Revisit my extension page, and follow the link to the configuration options for the line chart. This will provide you with layout settings you can add to the extra options
section. Look through the examples provided. The default chart settings in the extension will do their best to display a chart. Sometimes it is easier to setup a demo graph on your computer and run things in your browser from a local html file for testing purposes, this will help you to get the syntax correct.
I am also moving this topic to your existing thread.
That actually should be a problem in itself. If scrolling is required, the Web View Component automatically makes that possible - no need to accommodate scrolling Arrangements.
Grrrrrrrrrrr !
Steps 1-4 is where I began today and I swear it! I do as you say and now its working perfect
Of course, there must have been something else wrong but oh well? Maybe I will learn it again in the future
One possibility is a slow internet connection but I did wait up to 3 minutes a couple times
Thanks again @TIMAI2
P.S. this reply was supposed to send to you 10 hrs ago but did not send
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.