Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Just bought your chart plugin. I just need very simple things like a bar chart to display boys and girls in a classrrom.

Can someone make it simple for me to understand?

I guess you'll need to create a calculation field in Classes table, something like that

Set Variable [ $result = Let(

debug = pieChartCreate( "Gender distribution" ) and

pieChartSetDataPoint( "boys" ; Class::Class_total boys ) and

pieChartSetDataPoint( "girls" ; Class::Class_total girls );

pieChartShowGraphic( 360; 360 )

)

Please make it simple for me to understand, without error messagens and stuff. Thanks

Test_Chart.zip

Posted

Two issues: You were calling barChartSetSeriesColor, but you're creating a pie chart, you should use pieChartSetSeriesColor.

Second, the data points were added with a leading space, but the series name passed to pieChartSetSeriesColor was missing this space.

Here's the final version I have

Let(

debug = pieChartCreate( "Quoted Hours Worked " & Get(CurrentTime) ) and

    pieChartSetDataPoint(" boys" ; Class_total boys ) and  

    pieChartSetDataPoint(" girls" ; Class_total girls ) and

// set colours

pieChartSetSeriesColor(" boys" ; 100 ; 100 ; 255 ; 255 ) and

pieChartSetSeriesColor( " girls" ; 200 ; 100 ; 100 ; 255 ) ;

    pieChartShowGraphic( 360; 360 ))

Posted

Your best bet there is to pass an empty title in to the chart, and use a FileMaker text field to display the chart title.

This topic is 5545 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.