Jump to content

Creating graphs


This topic is 8001 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Quite similar to the last post! but anyway...

I need to put data that i have stored in one of my FM Pro databases in to a graphical format.e.g bar graph, line graph etc. The data in the database i need to show is recordings of job times. e.g average job times per customer.

1. can this be done in the same database i.e. on another layout?

2. Does it require a plugin?

3. is it difficult?

Thanks in advance.

Link to comment
Share on other sites

Hello Ricardo,

YES, you can create a 'bar' graph with data from FileMaker... It's not a pretty thing to do though. In fact, it's almost UGLY.

Here's a simple sample:

- Create a 'blank' layout with 'many' columns

- Define field "Bar" as a Calc field with a Text result

-- Left("||||||...|||||", Int(DataField))

--- Use 100 "|" characters between quotes

--- 'DataField' is the field you want to graph

- Insert the "Bar" field on the layout

- Rotate the "Bar" field to a vertical orientation

- Insert 'DataField'

- In 'Browse' mode, add new record and enter data in 'DataField'

- Preview to see vertical graphs

NOTES:

- You can only enter data in 'Browse' mode

- You can only view graph in 'Preview' mode

- You can 'Copy' the graph to the 'clipboard' in 'Preview' mode

- You can then 'Paste' the graph into a 'container' field or another application

IDEA:

Create a script to get graph & data and move to another application such as a spreadsheet.

This is about the best I've been able to come up with... not pretty, but usable. There maybe a plug-in. Look on the FileMaker site (http://www.filemaker.com/plugins/index.html).

I have a simple sample file. Let me know if you would like it e-mailed to you.

Hope this helps...

Bob

Link to comment
Share on other sites

  • 3 weeks later...

The ||||| calculation idea is ugly, a better one is to create a repeating container field that has the same number of repetitions as the maximum result. Then use the getRepetiton function to call up the appropriate graph(ic).

eg. GraphField (Container, Repeating)

ResultCalc (Number) -- must be an integer so needs (round,0), also the mod function can help out here in some cases

GraphResult(calculation,container)=GetRepetition(GraphField,ResultCalc)

Try it out.

Link to comment
Share on other sites

This topic is 8001 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.