Coriolan_66 Posted September 27, 2009 Posted September 27, 2009 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
Coriolan_66 Posted September 27, 2009 Author Posted September 27, 2009 Ok, Im getting better, need some retouch with variables as bars wont display. Aid appreciated Test_Chart__2_.zip
Coriolan_66 Posted September 27, 2009 Author Posted September 27, 2009 Ok, charts working now but I have a problem with the colours, as barChartSetSeriesColor doenst work at all. Test_Chart_3.zip
shmert Posted September 28, 2009 Posted September 28, 2009 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 ))
Coriolan_66 Posted September 29, 2009 Author Posted September 29, 2009 Thanks you for the support. You have a wonderfull plugin and the alpha makes a really cool effect.
Coriolan_66 Posted September 29, 2009 Author Posted September 29, 2009 Ok. Another questions please: How can I costumize that chart title? I found that bold black font quite heavy...
shmert Posted September 29, 2009 Posted September 29, 2009 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now