Questions tagged [visualforce-charting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
22 views

Visualforce apex:chart showing unknown property error

I am trying to display a simple line chart with 3 data (today, 7 days ago, and 14 days ago) in order to view the evolution of the score of a certain record. Everything is set to "public"... ...
Bernardo Lira's user avatar
1 vote
0 answers
47 views

How to add $ sign over hoover on each employee

I need to add $ symbol over hoover eg- 1000 --> $1000 VF Page: <apex:page controller="BarChartController"> <apex:chart height="400" width="400" data="{!employees}"> <...
sricool's user avatar
  • 11
1 vote
2 answers
1k views

VisualForce Google Chart = TypeError: Cannot read property 'length' of undefined at drawChart

We are trying to create a Visualforce page which will include a graph displaying budget data. For testing purposes, I want to display 3 columns as defined in the code below. Running the query in the ...
Nick Kuppens's user avatar
1 vote
0 answers
54 views

Getting multiple lineseries component VF charting & dynamic VF

I have a requirement where I am asked to have multiple lineseries. The number of line series components is variable. I tried Dynamic VF components with just one line series and this is the error ...
Ksam's user avatar
  • 11
1 vote
0 answers
666 views

Show Percentage on wedges of pie chart

<apex:pageBlockSection > <apex:chart height="250" width="350" data="{!PieData}" resizable="true"> <apex:pieSeries dataField="data" labelField="name" /> <apex:...
GroundToCloud's user avatar
0 votes
1 answer
316 views

How to embed external (live) charts to Visualforce page?

I tried doing the following in Visualforce Page: <apex:page> <div class="embed-container"><iframe src="https://fred.stlouisfed.org/graph/graph-landing.php?g=m8jU5" scrolling="no" ...
compski's user avatar
  • 1,251
2 votes
1 answer
224 views

Which is more elegant/faster: Iterate over a large query result 25+ times or do 25+ queries?

NOTE: This is not an "opinion-based" question. I am asking a technical question about how the platform handles queries and memory. Please do not flag it. I want to display survey results using ...
DavidSchach's user avatar
  • 5,825
0 votes
1 answer
141 views

Apply CSS to Custom Visualforce Chart

We have developed a Custom VF Chart as shown above. Now our requirement is to beautify the chart(bars and texts) and its legends by applying the css on it. Can we apply css on the chart tag and ...
sagar maurya's user avatar
1 vote
1 answer
2k views

On clicking on bar chart display list of related records on Visualforce page

I have a visualforce page with a bar chart that displays a user count on x-axis and profile name on y-axis. When a user clicks on the bar chart, I need to populate the user data in a table that have ...
LearningMacro's user avatar
1 vote
1 answer
705 views

Visualforce chart Custom field filter error: For the filter 1: Specify a valid filterable column because XXX is not valid

HEELP! I have a report for opportunities. I need a VF that shows this report and I need a filter using a custom field named: PUBLISH DATE(Publish_Date__c ) : I've tried Publish_Date__c, ...
alejandro's user avatar
  • 109
0 votes
1 answer
130 views

Can Salesforce Radar Chart have less than 10 values on yAxis

I am using the below code to plot radar chart and I only want values 1through 5 on yAxis. However the values are duplicated as shown below. I tried using margins property, but that did not make any ...
Shweta Shanbhag's user avatar
0 votes
1 answer
182 views

Use Bootstrap for Analytics ReportChart

Can bootstrap be used to control the size of an Analyltics report chart? I have a VF page referencing the Bootstrap CSS file but the chart dis not appear to be responding to the added reference. Am ...
Phuc's user avatar
  • 407
1 vote
1 answer
1k views

Create a chart in Lightning

I want to create a chart map in lightning something like this where the names are marked on a point on the base map based on 2 scores. I don't see any option to create as such using scatter chart or ...
Brav's user avatar
  • 708
0 votes
0 answers
364 views

Apex Scatter Chart - how to handle overlapping points?

I have a VF page that displays a ScatterSeries chart - where each point is an Account (coordinates are two values on the Account). The issue is that some of the points have the same coordinates, so ...
chris markiewicz's user avatar
0 votes
1 answer
1k views

Hide Chart label in apex:gaugeseries

how could I hide the chart labels in chart, I'm tring with apex:chartLabel display="none" but seems not working. My code: <apex:page controller="GaugeChartController"> <style> ....
L.benedettini's user avatar
1 vote
1 answer
68 views

Visualforce Charting limitation

I am reading on Visualforce Charting Limitations and Considerations, and notice this sentences : Dynamic (Apex-generated) charting components are not supported at this time. I want to know the scope ...
unidha's user avatar
  • 2,542
0 votes
0 answers
108 views

Plotting y axis tick in Visualforce Radar Chart

Here is my chart I want the plotting start by even number such as 0,2,4,6,8,10 instead of 0 to 10.I tried steps or margin but it does not work. <apex:axis type="Radial" position="radial" steps="...
unidha's user avatar
  • 2,542
1 vote
1 answer
287 views

How to refresh analytics:reportChart from Controller

I have the following code in the visualforce page and a button so when the user clicks the button I would like to show the reportChart but its not happening PS: Yes the reportId is not blank I'm ...
Nick's user avatar
  • 6,934
0 votes
1 answer
565 views

Different apex:chart colors

How to get the different colors instead of just blue as shown below? <apex:page controller="OppsController"> <apex:chart data="{!Opportunities}" width="600" height="400"> <...
Nick's user avatar
  • 6,934
2 votes
1 answer
3k views

Change Default Pie Chart Color in Apex?

I'm wondering is there a way to change the default pie-chart colors? the default random colors does not work in my scenario and we have our own set of colors like to implement in the pie-chart. Here ...
Nick's user avatar
  • 6,934
3 votes
1 answer
196 views

barSeries can not contains multiple fields in yField via Javascript?

I can render this barSeries from controller page: <apex:chart id="barChart" height="400" width="100%" data="{!dataArray}"> <apex:axis type="Category" position="bottom" fields="...
DeepIce's user avatar
  • 73
3 votes
1 answer
394 views

Convert SOQL milliseconds output to mm/dd/yyyy format in visualforce chart

I want to display the CreatedDate in MM/DD/YYYY format in line chart here. I am getting the SOQL output in milliseconds. I know this can be done using javascript but I am not that familiar with it. &...
Mike's user avatar
  • 113
3 votes
1 answer
515 views

Show/create simple Bar Graph on a Visual Force Page in a Salesforce Community

The main requirement was to show a simple Bar graph in a Community Home Page (VF Page). I firstly tried to show a simple already created Report in Salesforce but got to know that Community doesn't ...
AMAN 's user avatar
  • 67
1 vote
0 answers
218 views

Embedded Visual Force Gauge Chart

I have been tasked with making a gauge chart that will be embedded in our customer 'location' object that will be unique to each location, based on 3 key metrics within the location. I know what they ...
Leah's user avatar
  • 11
1 vote
1 answer
777 views

VF Charting not working-- simple Bar Chart. Bar not getting generated

I have this List of apex wrapper class and using the same in creating Bar charts but no bars are appearing at all. Class: public class ChartData{ public String yearMonth {get;set;} public ...
Jai Chaturvedi's user avatar
4 votes
2 answers
2k views

Apex Chart not rendered in Lightning Design System

I developed a really simple page where I have several apex bar charts, based on values calculated in an apex controller. Now, when I put the charts into a <div class="slds"></div>, the ...
Julien Gaïotto's user avatar
1 vote
1 answer
462 views

Test Class for Chart Controller

Below is a Visualforce Chart Controller example directly from the offical documentation. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_charting_overview_simple_example.htm ...
Steel Reserve 211's user avatar
1 vote
1 answer
163 views

How do i create a new VF page for Salesforce Analytics API

We are novice to VisualForce Page and Apex development. Trying to create a new VF page using sandbox org. Also in that, we need to use jquery ajax callout. We are trying to implement SFDC Analytics ...
Sylphes's user avatar
  • 157
1 vote
0 answers
150 views

Displaying two lists in VF chart

Curently in an apex chart, I am displaying a bar chart . Bar chart data is a List method. public static List<InnerClassName> getMethod1(List<String> Ids) In the VF Page Visualforce....
SFDCRookie's user avatar
-3 votes
1 answer
42 views

Doubt in Apex:chart [closed]

how to display the xfield and yfield value only once if the values are repeating in apex:chart. Thanks in advance, Abinaya S
abinaya's user avatar
1 vote
1 answer
193 views

Visualforce Line chart not populating

I need to plot values vs week. I don't see any errors. But just the data is not populated ? public class ChartController { // Return a list of data points for a chart public List<Data> ...
Aravind's user avatar
  • 11
0 votes
2 answers
98 views

Hide Visualforce Chart Based on Number of Data Points

I want to hide a Visualforce Chart if there are no data points. Since PieData is a list of data points, why can I not use the style below? <apex:page Controller="PieChartController" rendered="{!...
Steel Reserve 211's user avatar
2 votes
2 answers
153 views

Markerfill error in VF Line Series

<apex:lineSeries axis="left" xField="Month" yField="Score" markerType="circle" markerSize="4" markerFill="MarkerColour" /> I am using a formula field to store colour code in a formula field and ...
SFDCRookie's user avatar
2 votes
1 answer
209 views

Can you remove steps in a gauge?

I built a custom vf gauge chart, which looked and worked well in the sandbox. When we had it look against real data the chart gets ugly. The values are too high to show with any meaning. I created ...
Dan Wooding's user avatar
  • 3,478
2 votes
2 answers
119 views

Sales Team Dashboard

I need to change the dashboard called “Sales Team Dashboard”. The first top left dashboard needs to show as a percentage of goal. The graph should look similar to the below. One thing to note is ...
sanchit's user avatar
  • 918
0 votes
1 answer
475 views

Apex chart - Scatter Series

I have a line series with Y AXIS = Opportunity Closed Date X AXIS = Opportunity stage OpportunityFeedback has 4 picklist values. Based on that I was planning to spread the data into scatter series ...
SFDCRookie's user avatar
1 vote
1 answer
1k views

change the Colour/markerFill in an Apex Line Series?

I have a line series : <apex:lineSeries axis="left" xField="Date" yField="Opportunity Name" markerType="circle" markerSize="4" markerFill="#8E35EF" /> Is it possible to change the markerType/...
SFDCRookie's user avatar
1 vote
1 answer
628 views

Visualforce gauge step values inside chart

Is there a way to make the step values of a gauge show up on the inside of the gauge chart compared to the outside? I tried using apex:chartLabel and changing the display value but that does not seem ...
Dan Wooding's user avatar
  • 3,478
0 votes
1 answer
672 views

i am trying to show pie chart for my requirement

<apex:page controller="RepresingusingAggrgate" title="Pie Chart"> <apex:pageBlock> <apex:pageBlockSection title="using aggregate results"> <apex:chart data=...
Satya's user avatar
  • 724
0 votes
3 answers
1k views

Controller Error: expecting right curly bracket, found 'for' at line 12 column 8

I am gathering some data for a bar chart. I cannot see why it keeps yelling at me for the right curly bracket. Error: Compile Error: expecting right curly bracket, found 'for' at line 12 column 8 ...
Steel Reserve 211's user avatar
1 vote
1 answer
955 views

apex chart with negative values [closed]

I created a visualforce with apex:chart and apex:barSeries with stacked attribute set to true. One of the values is negative and I want it to be under the x axis. How do I do that ? Thanks.
osos9's user avatar
  • 11
1 vote
1 answer
3k views

Change mouse to cursor pointer whenever hover over visualforce chart in salesforce

VF page <apex:page controller="ChartController" title="Pie Chart" sidebar="false"> <apex:includeScript value="{!URLFOR($Resource.ChartLib, 'jquery.min.js')}"/> <script type="text/...
Pooja's user avatar
  • 11
1 vote
2 answers
1k views

Using Report Builder record data in custom Visualforce Page

Is it possible to use the records a standard Salesforce report would generate in a Visualforce page or class? Is see that there is an api to query for report metadata, but is there a way to also get ...
Andrew Bettke's user avatar
1 vote
0 answers
49 views

VF Pie Chart with two data points

Is it possible to have two data points(two different custom fields ie. Data1field & Datafield) in a single pie chart? Currently there are no errors but pie chart doesn't show. public class ...
Peter Kim's user avatar
2 votes
1 answer
242 views

Does apex:chart work for a partner portal/communities user?

I've seen a few posts on here to get dashboards displayed to portal users and things of that nature, but I'm looking specifically for whether or not this tag works for communities users. We've setup ...
zainogj's user avatar
  • 1,854
2 votes
0 answers
1k views

apex chart legend in multiple lines / line break

I have 10 line series apex chart developed in visual force page. I am displaying my legend at bottom of the chart. I dont see all the legends being shown. The legend is shown as on single line and ...
user669789's user avatar
1 vote
0 answers
347 views

how to convert VF chart X-axis time from 24hr format to 12hr format?

I have a visualforce chart in which the time is given in 24 hours format . I want that to convert in 12 hours format with am/pm. Is there any way to achieve this . Thanks, Prasanth public with ...
prasanthcheenu's user avatar
5 votes
2 answers
1k views

How to rerender multiple charts

I'm trying to rerender two apex chart components after a form field change, and can only seem to rerender one of them. Here's my page: <apex:page showHeader="false" sidebar="false" controller="...
bafuda's user avatar
  • 757
1 vote
1 answer
175 views

Unable to generate Pie Chart in Apex

I want to have a chart created using Apex. Below is the Object parameters: Pie chart should have Product types shown based on the total quantity of that particular product. ProductType__c ...
Rupayan Poddar's user avatar
1 vote
0 answers
330 views

Chart not displaying Aggregate SUM value in VisualForce using Apex

I have an object Revenue__c that has 2 fields ... ProductType__c, QuantitySold__c. I want to showcase this below scenario as a bar graph : ProductType__c QuantitySold__c AC ...
Rupayan Poddar's user avatar