Clayton King Posted February 29, 2024 Posted February 29, 2024 I have a C3 pie chart created from my data and showing in a web viewer. I've been attempting to create a chart with my data. Thankfully, on another post, a user came up with a helpful method which has allowed me to create a scaleable pie chart. Now I'm trying to adjust the background. I understand on Windows it is not possible to create a transparent background, so my second choice was to use the background color of the layout so that it appeared transparent. However, I'm getting what I think is odd results. The following screen grabs show different colors specified in the webviewer code. Any ideas? <GetLayoutObjectAttribute ( \"c3-eb4b9be8.css\"; \"content\" )> ¶ <script src='https://c3js.org/js/d3-5.8.2.min-c5268e33.js'></script> ¶ <script src='https://c3js.org/js/c3.min-d2a1f852.js'></script> ¶</head> ¶ ¶<body bgcolor=#FFCC00; style='margin-top:0px; margin-left:0px; overflow:hidden;'> ¶ ¶<div id='chart'></div> ¶ ¶<script> ¶var chart = c3.generate({ In the <body bgcolor= selector, I've specified black, #FF0800, #FFCC00, all with results that are not the colors specified. this one should be the same color as the yellow slice This one should be red (FF0800) This one should be black This is should be the same light blue as the layout navigation pane (47CCFC).
comment Posted February 29, 2024 Posted February 29, 2024 (edited) This is a cross-post: https://community.claris.com/en/s/question/0D5Vy000003rwHZKAY/c3-chart-backgrounds-in-webviewer Please have the courtesy to provide a link when you do that, so that people don't waste their time repeating replies already given. Edited February 29, 2024 by comment
Clayton King Posted March 3, 2024 Author Posted March 3, 2024 Sorry about that. Didn't realize I did that.
comment Posted March 3, 2024 Posted March 3, 2024 And you just did it again: https://fmforums.com/topic/110142-hide-text-object-on-a-portal-based-on-portal-contents/#comment-491944 https://community.claris.com/en/s/question/0D5Vy000004340nKAA/hiding-layout-objects-conditionally
Clayton King Posted March 3, 2024 Author Posted March 3, 2024 Quote Sorry-I misunderstood your first cross-post police comment. I thought I did this in the same forum. I intentionally asked people in another forum on another site for advice on the same issue, hoping to gain more insight into my problem.
Recommended Posts
This topic is 534 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