Line Graph: Double X Entrys

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ace16vitamine
Posts: 130
Joined: Fri Apr 13, 2018 1:53 pm

Line Graph: Double X Entrys

Post by ace16vitamine » Sun May 03, 2020 11:41 pm

Dear all,

I have a strange problem and I do not know why or what is going on wrong.

2 Line Graphs:
lg_wrong2.jpg
1st with the data

0,0
1,2
2,6
3,5
4,5
5,4
6,6

2nd with the data

0,2
1,6
2,5
3,5
4,4
5,6
6,7
7,3
(..)

In the 2nd Graph I have double Items on the X Axis description and I dont know why. If I change the Data from the 2nd to the 1st I have the same issue. It seems that I have a problem with the datas but what is wrong?

Any Ideas why?

Stef

Xero
Posts: 152
Joined: Sat Jun 23, 2018 2:22 pm

Re: Line Graph: Double X Entrys

Post by Xero » Mon May 04, 2020 5:30 am

You have a repeated 5 in your first graph as well...
No idea how to fix it, but it seems where you have a double number value, you're getting a repeat...
X

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Line Graph: Double X Entrys

Post by LiveCode_Panos » Mon May 04, 2020 8:01 am

Hello all,

This was a bug in the line graph widget, which should be fixed in LiveCode 9.6.0 DP-4:

https://downloads.livecode.com/livecode/

Kind regards,
Panos
--

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4000
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Line Graph: Double X Entrys

Post by bn » Mon May 04, 2020 9:43 am

LiveCode_Panos wrote:
Mon May 04, 2020 8:01 am
Hello all,

This was a bug in the line graph widget, which should be fixed in LiveCode 9.6.0 DP-4:

https://downloads.livecode.com/livecode/

Kind regards,
Panos
--

Hi Panos,

If you are referring to
https://quality.livecode.com/show_bug.cgi?id=22482
with pull-request
https://github.com/livecode/livecode/pull/7294

then the pull-request is not yet merged as of today and would not be in LiveCode 9.6.0 DP-4

Kind regards
Bernd

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Line Graph: Double X Entrys

Post by dunbarx » Mon May 04, 2020 2:36 pm

Hi.

A small thing, but please let me (us?) know early on that you are working with a widget, as opposed to "ordinary" LiveCode.

I condo not figure out how you got the graph you got at all, until I saw Bernd's post. :wink:

Craig

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Line Graph: Double X Entrys

Post by LiveCode_Panos » Mon May 04, 2020 7:52 pm

Hi Panos,

If you are referring to
https://quality.livecode.com/show_bug.cgi?id=22482
with pull-request
https://github.com/livecode/livecode/pull/7294

then the pull-request is not yet merged as of today and would not be in LiveCode 9.6.0 DP-4
Oops, sorry :)

Indeed this is the PR I had in mind. I thought it was reviewed and merged. Thanks for spotting this Bernd!

Kind regards,
Panos
--

ace16vitamine
Posts: 130
Joined: Fri Apr 13, 2018 1:53 pm

Re: Line Graph: Double X Entrys

Post by ace16vitamine » Tue May 26, 2020 10:45 pm

Any news if this will be fixed in 9.6.0 (RC3)?

Stef

mrcoollion
Posts: 720
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Line Graph: Double X Entrys

Post by mrcoollion » Wed May 27, 2020 9:06 am

On another note. If you really need complex graphic chart there is another way to do this.
I use ECharts with the browser Widget https://echarts.apache.org/en/index.html

Downloaded the online java script https://echarts.apache.org/en/download.html

And depending on what chart you need you only have to manipulate one or two files. You might need to invest some time to figure out how and what but the result is worth it. In the samples section not only the cards are shown but also the code https://echarts.apache.org/examples/en/index.html.
I use the examples given in the download.
Here are some examples.
ChartScreenShot.png
Attachments
ChartScreenShot2.png

ace16vitamine
Posts: 130
Joined: Fri Apr 13, 2018 1:53 pm

Re: Line Graph: Double X Entrys

Post by ace16vitamine » Mon Jun 08, 2020 8:33 pm

OK, it is not merged with 9.6.0 (final). And the patch (which Bernd wrote) is not working. Maybe another issue?

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4000
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Line Graph: Double X Entrys

Post by bn » Mon Jun 08, 2020 8:45 pm

ace16vitamine wrote:
Mon Jun 08, 2020 8:33 pm
OK, it is not merged with 9.6.0 (final). And the patch (which Bernd wrote) is not working. Maybe another issue?
could you post sample data that is not working in the patched version of linegraph widget?

You could also send it via private message if you prefer.

Kind regards
Bernd

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4000
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Line Graph: Double X Entrys

Post by bn » Mon Jun 08, 2020 9:18 pm

Hi Stef,


here are the screenshots of the two datasets you have sent me.
lineGraph2.png
lineGraph1.png
I am afraid that is as good as it gets with my patch.

Kind regards
Bernd

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4000
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Line Graph: Double X Entrys

Post by bn » Mon Jun 08, 2020 9:38 pm

Hi Steph,

this is the patched widget with a different name and signature. That way you can install it alongside of the built-in widget and test the patched version.
To install it use the Extension Manager and point the Extension Manager to the (unzipped) file I attach.

Kind regards
Bernd

com.berndn.widget.linegraphbnfirstys.1.2.2.lce.zip
(25.89 KiB) Downloaded 180 times

ace16vitamine
Posts: 130
Joined: Fri Apr 13, 2018 1:53 pm

Re: Line Graph: Double X Entrys

Post by ace16vitamine » Mon Jun 08, 2020 9:44 pm

Ok Bernd, if I install it with the extension manager it is working.

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”