Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Graphs

Featured Replies

Is it possible to make bar graphs in FM? I was thinking something like a container field with a graphic that has the width set by the amount. This possible?

Thanks

-j

Without a plugin, the simplest way is to use a global text field g_bar which contains 100 "|". Then have a calculation (text) which determines the length of your bar as =Left(g_bar,number). Number can be an absolute or a percentage of a total. For display purposes, replicate the field so you have 3 copies and then overlay them, each offset by 1 pixel.

You can also do it by using repeating container fields, or a portal of container fields.

Another nifty aspect to RussBaker's response is that it can be used to create Gantt charts!

Hello,

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

  • Author

It's ugly, and simple, but that's all i needed. I had a summary field already to show me the total hits for the bunch, so i set up a percentage based off 100.

Here it is, be ready to cringe.

Left("||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||", Int((Hits/sHitTotal)*100))

But it does the job. Made the text field the same size as 100% colored it differnt, so i see what it is vs 100%.

Thanks!

Hello Again,

Now that you have that...

Create VERTICAL bars so you get 'multiple' vertical bars to display...

Good Luck,

Bob

Dear nightdesigns,

No problem with your solution, but I wonder where you got a field named "sHitTotal". Seems to me that a ... shall we say "less than careful" capitalization might tend to lead some people to draw an unintended conclusion.

haha..!

that graph would almost certainly be a pie chart....

  • Author

It's funny that your bring that up. It has no intention to be offensive in any way. It's a summary field, so i start it with an s then the field name. I do the same for calc fields © and global fields (g). Makes finding things easy. Hit total just happened to be a summary field. Ah well.

-j

Here are some screen dump samples from one of my personnel systems, if anyone wants some ideas. These are all done in Filemaker without using plugins. Sorry about the high level of jpeg compression.

Graph_Samples.jpg

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.