Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

"explode" slice of a pie chart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    "explode" slice of a pie chart

    Hello,

    I am trying to figure out what type of expression do you have to create to have a slice of the pie chart moved. I want to explode the slice with the largest amount. I looked at the videos for charts and the help file, but did not see any examples of how to use this feature. Any help would be greatly appreciated.

    Thank you
    Tracy

    #2
    Re: "explode" slice of a pie chart

    Hello,

    Can anyone confirm that the explode pie chart option works? Has anyone used it?
    Let me know

    Thanks
    Tracy

    Comment


      #3
      Re: "explode" slice of a pie chart

      Hi Tracy,

      I can confirm the pie chart can be made to explode. Can you post a sample of what you have so far.
      Regards
      Keith Hubert
      Alpha Guild Member
      London.
      KHDB Management Systems
      Skype = keith.hubert


      For your day-to-day Needs, you Need an Alpha Database!

      Comment


        #4
        Re: "explode" slice of a pie chart

        Hi Keith,

        That is good to hear that the options works.

        I'm not sure what you are asking me to post. I created a pie chart and want to explode the slice that has the largest value based on the value displayed from the "Data" field on the Graph Data dialog box.

        For example, if the values displayed on the chart (based on the data field) are 1,2 4 8, these would be the slices on the pie. I want to explode the slice that has the value of 8.

        Is this what you need to help me?
        Thank you
        Tracy




        Originally posted by Keith Hubert View Post
        Hi Tracy,

        I can confirm the pie chart can be made to explode. Can you post a sample of what you have so far.

        Comment


          #5
          Re: "explode" slice of a pie chart

          Hi Keith,

          Is the information that I posted in my previous thread what you were looking for to figure out where I went wrong.

          Let me know
          Thank you
          Tracy

          Comment


            #6
            Re: "explode" slice of a pie chart

            Take a look at the AlphaSports ProductSalesByState form.

            I was able to explode the largest slice in the Number of Sales by State chart by entering Bill_State_Region = "MA" in the Explode Slice box in the supercontrol designer. Are you wanting to automatically explode whichever slice is the largest?

            slice separated.png
            There can be only one.

            Comment


              #7
              Re: "explode" slice of a pie chart

              Hi Stan,

              Yes, I want tp automatically explode whichever slice is the largest.

              Tracy

              Comment


                #8
                Re: "explode" slice of a pie chart

                There is no built in method to do that I know about. Likely you will have to create a summarization operation and find the key value in the record with the largest value, put that value in a global variable. Then reference that variable in the explode slice expression.

                Easily enough done and should execute quickly.
                There can be only one.

                Comment


                  #9
                  Re: "explode" slice of a pie chart

                  Wow Stan,

                  I wasn't expecting to have to create a formula to find the largest value.
                  I'm starting to think that it may be best to leave the reports in Crystal, if I can attach to the A5 database in Crystal.
                  I don't know if you have used Crystal Reports, but there is a check box to explode the largest or smallest slice of a pie. No formula (on my part) required.

                  Thank you
                  Tracy

                  Comment


                    #10
                    Re: "explode" slice of a pie chart

                    There is no built in method to do that I know about.
                    It may be there and I don't know it. Don't really have any use for charts.
                    There can be only one.

                    Comment


                      #11
                      Re: "explode" slice of a pie chart

                      It appears the supercontrol designer uses "the Graph ActiveX control installed by Microsoft Office". If automatic explosion is available there one should be able to access it.

                      there is a check box to explode the largest or smallest slice of a pie
                      I would expect a custom reporting tool to have more features than those found in Alpha. Especially given the ~ $400 price?
                      There can be only one.

                      Comment


                        #12
                        Re: "explode" slice of a pie chart

                        Hi Stan,

                        As you suggested, I looked in the AlphaSports database. The problem I had was that I didn't see that you said it was a form I was looking for a report. Now, that I can read a little better . . . I looked at the "form", to see what was done to explode a slice.

                        I will see how close I can come to selecting a slice.

                        Thank you
                        Tracy

                        Originally posted by Stan Mathews View Post
                        Take a look at the AlphaSports ProductSalesByState form.

                        I was able to explode the largest slice in the Number of Sales by State chart by entering Bill_State_Region = "MA" in the Explode Slice box in the supercontrol designer. Are you wanting to automatically explode whichever slice is the largest?

                        [ATTACH=CONFIG]34670[/ATTACH]

                        Comment


                          #13
                          Re: "explode" slice of a pie chart

                          I saw the Graph ActivX help page, but couldn't figure out where it was to use, so I figured that either it is no longer available or only available in xdialog, which I am not that familar with.


                          I honestly didn't think that this was an advanced feature, as it can be done in Excel, not that Excel doesn't have advanced features.




                          Originally posted by Stan Mathews View Post
                          It appears the supercontrol designer uses "the Graph ActiveX control installed by Microsoft Office". If automatic explosion is available there one should be able to access it.

                          I would expect a custom reporting tool to have more features than those found in Alpha. Especially given the ~ $400 price?

                          Comment


                            #14
                            Re: "explode" slice of a pie chart

                            Here..you could explode your pie and eat it too..
                            Code:
                            values=<<%str%
                            10|Apples
                            15|Oranges
                            30|Bananas
                            45|Berries
                            %str%
                            values=sortsubstr(values,crlf(),"D")
                            
                            colors=<<%c%
                            red
                            Yellow
                            Blue
                            green
                            %c%
                            
                            cnt=*count(values)
                            dim tot as n=0
                            for i=1 to cnt
                            tot=tot+val(word(values,i,crlf()))
                            next
                            
                            dim cod_txt as c
                            cod_txt=<<%ct%
                            inner_Rect(0,0,4,4)
                            set_pen("black","solid",4)
                            %ct%
                            
                            dim ang as n=0
                            dim cumang as n=0
                            for i=1 to cnt
                            	cumang=cumang+ang
                            ang=val(word(values,i,crlf()))/tot*360
                            	cumang1=cumang+ang/2
                            	xdsp=1.65+cos(dtor(cumang1))
                            	ydsp=2+sin(dtor(cumang1))	
                            	
                            bcgclr=quote(word(word(values,i,crlf()),2,"|"))
                            cod_txt=cod_txt+crlf()+"set_brush("+quote(word(colors,i,crlf()))+")"+crlf()+"fill_pie(2,2,1.5,"+ang+","+cumang+","+if(i=1,.2,0)+")"+crlf()+"set_font(\"arial,12\",\"black\","+bcgclr+")"+crlf()+"text("+bcgclr+","+xdsp+","+ydsp+")"
                            next
                            ui_bitmap_draw("test",cod_txt)
                            ui_dlg_box("","{image=test}")
                            I could fancy this up a whole lot more..but its a basic one to get you going.

                            Comment


                              #15
                              Re: &quot;explode&quot; slice of a pie chart

                              Here..you could explode your pie and eat it too....

                              I could fancy this up a whole lot more..but its a basic one to get you going.
                              G, I am pretty sure this not what Tracy was looking for as a way to produce a chart. A small number of us have done charts using Xbasic tools like you used here, and it just goes to show (I believe) that easy to use charts could be made a part of Alpha Five without resorting to third party add-in tools that end up leaving a lot to be desired. But Alpha probably has far more lucrative things to do with their limited resources, so we either spend the time doing the kind of thing you illustrated or we somehow try to make the third party stuff work--or go to something like Crystal Reports. Years ago I did a very complex chart using the tools you illustrate (and it is still working flawlessly today up to at least V10.5) but there was a huge learning curve and it took a tremendous amount of time to do it. I would do simple charts that way again, but never a very complex one--unless I were being paid by the hour!

                              By the way, glad to see you are back contributing on the forum.

                              Raymond Lyons

                              Comment

                              Working...
                              X