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

Creating SimpleCharts....

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

    Creating SimpleCharts....

    I am trying to add a pie chart onto an existing form to display data from eight or more fields containing data from the same database.
    As I page through records on the form, I would like to keep the chart visible while displaying the corresponding data from each record.
    I have edited the sample FetchPie script for use on a similar form in my application, as this script allows the �onfetch� event to page through records displaying the corresponding chart data exactly as required, but when I create a Simple Chart using action scripting and the simple chart genie using an Alpha.dbf table with the multiple fields, single row option to display my data, I cannot get it to work the same way?.
    Ideally, if I could add my other field criteria to my modified FetchPie script, then this would be great, but I have no idea how to do this.
    I would also like to select my own colours for the chart segments if this is possible.


    Many Thanks

    #2
    Re: Creating SimpleCharts....

    Fred,

    You would probably get a better response if you posted a copy of your database. It is very difficult trying to explain how to do something when no details are provided. Also provide instructions as to what form and what fields you are talking about within you db.

    Bill
    Bill Griffin
    Parkell, Inc

    Comment


      #3
      Re: Creating SimpleCharts....

      Hi Bill, thanks for your comments. I am pleased to say that I have now succesfully managed to modify the sample FetchPie script to work with my application. However, I would be very interested in your thoughts on how to specify my own colours for the SimpleChart segments.

      Thanks

      Comment


        #4
        Re: Creating SimpleCharts....

        Hi Fred,
        I have no clue as far as anything to do with an Action Script in order to so this as version 8 is what I am using and Action Script for SimpleChart must be a new feature in version 9.

        That said, if converted to xbasic you would use these object attributes to change the segment colors--directly from the SimpleChart help file. It would have to be made to fit your scenario.

        MyPieChart.ChartData(1).FillStyle = scFillModeGraduated
        MyPieChart.ChartData(1).FillColor1 = RGB(255, 255, 0)
        MyPieChart.ChartData(1).FillColor2 = RGB(0, 0, 255)
        Mike
        __________________________________________
        It is only when we forget all our learning that we begin to know.
        It's not what you look at that matters, it's what you see.
        Henry David Thoreau
        __________________________________________



        Comment


          #5
          Re: Creating SimpleCharts....

          Thanks for that Mike. I will try this and see if I can get it to work.

          Cheers

          Comment


            #6
            Re: Creating SimpleCharts....

            Fred, with the Lite version of SimpleChart, I do not think you have the ability to control the pie slice colors. But I am not sure about this. I tried this and got an error (function is not recognized):

            chartGen.ChartData(1).Fillcolor1 = RGB(255,255,0)

            I do not see how in the FetchPie example you could do this. What I see in the example is that you have a "chartGen" collection that has values for desc and price for each slice by using a line like this:

            chartGen.ChartData.Add(desk,price,0)

            What I do not know is what the third parameter might mean.

            If someone can help Fred, and me, with this???? Sue

            Comment


              #7
              Re: Creating SimpleCharts....

              Sue/Fred

              Originally posted by xpertsue View Post
              chartGen.ChartData.Add(desk,price,0)

              What I do not know is what the third parameter might mean.

              If someone can help Fred, and me, with this???? Sue
              The third parameter is for fill type. 0 = auto solid fill, 1= solid fill, 2 Auto Graduated, 3=graduated. There are 3 more additional fill types with the full version of simplechart. (Image fill, image stretch and image tile)

              Presumably, I believe you should be able to use 1 as the third parameter followed by a color code. This works in bar charts, but does not seem to work in piecharts. Check out this : https://forum.alphasoftware.com/showthread.php?t=73700


              It is an Excellent resource for bar charts. Back to the problem. You should be able to set the color of the pie piece, at least according to the documentation, but this does not seem to work. I have the full version of Simplechart at my office and won;t be back till Monday, so I will try to confirm whether it works in the full version.

              Bill
              Bill Griffin
              Parkell, Inc

              Comment


                #8
                Re: Creating SimpleCharts....

                Hi,
                There is something quirky in the use of this....I have a function that I have not had the time to fully complete for a project I am working on that generates the Bar, Line, and Pie charts simply my using its parameters. I have a feeling that when the auto-color fill is not used for solid or graduated, you have to use the "long" way to generate the Pie Chart, filling in all the various parameters for each slice.

                And yes the colors for the first user choices that Bill pointed out should be able to be used in the Lite version according to the help file for SimpleChart. The others not mentioned are only in the Full version.

                If I have time this weekend I will try and see if this is the case.
                Last edited by MikeC; 11-21-2008, 11:08 AM.
                Mike
                __________________________________________
                It is only when we forget all our learning that we begin to know.
                It's not what you look at that matters, it's what you see.
                Henry David Thoreau
                __________________________________________



                Comment


                  #9
                  Re: Creating SimpleCharts....

                  When using ChartData.add, in the solid mode, you must also pass the parameterers for Hidden and exploded as well as the color inorder for this to work.

                  for example:

                  Chart.ChartData.add("bill",25,1,.f.,.t.,vred)

                  The first parameter "bill' = desc
                  secone parameter 25 = value,
                  third parameter 1 = fill mode (solid)
                  4th parameter .f. = hidden
                  5th parameter .t. = Exploded
                  6th parmeter vRed = color of pie piece

                  This is true of the Lite version as well as the Full Version of SimpleChart

                  Hope this helps.

                  Bill
                  Bill Griffin
                  Parkell, Inc

                  Comment


                    #10
                    Re: Creating SimpleCharts....

                    Thanks Bill, this looks very interesting.

                    Comment


                      #11
                      Re: Creating SimpleCharts....

                      Ok Mike, please let me know if you have any luck.
                      Thanks

                      Comment


                        #12
                        Re: Creating SimpleCharts....

                        This simple example will produce the attached chart:

                        Code:
                        dim chart as p
                        chart = activex1.activex.this
                        dim vred as c="&h001EFF"
                        DIM vGreen as c = "&h00FF59"
                        dim vBlue as c = "&hFF2200"
                        dim vOrange as c = "&h0084FF"
                        dim vPurple as c = "&hFF00A6"
                        dim vTeal as c = "&hE1FF00"
                        dim vBlack as c = "&h000000"
                        chart.chartData.clear()
                        Chart.ChartData.add("bill",25,1,.f.,.t.,vred)
                        Chart.ChartData.add("bob",35,1,.f.,.f.,vblue)
                        Chart.ChartData.add("Jim",57,1,.f.,.f.,vPurple)
                        
                        chart.refresh()
                        Bill
                        Bill Griffin
                        Parkell, Inc

                        Comment


                          #13
                          Re: Creating SimpleCharts....

                          Thanks Bill,
                          I did not have time this last weekend to verify my premise--now I know also that I am on the correct path to finish my function.
                          Mike
                          __________________________________________
                          It is only when we forget all our learning that we begin to know.
                          It's not what you look at that matters, it's what you see.
                          Henry David Thoreau
                          __________________________________________



                          Comment


                            #14
                            Re: Creating SimpleCharts....

                            We can think Nick at Simplechart.net for clearing up some questions for me.

                            Bill
                            Bill Griffin
                            Parkell, Inc

                            Comment

                            Working...
                            X