Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [charts]

The tag has no usage guidance.

0
votes
0answers
6 views

Change display of chart to show 3 types of data

I am using a report. This reports is linked to the lead object. Within the lead object it has two custom fields known as convertedDate and workType. I want to display number of records based on ...
0
votes
0answers
11 views

How to send canvas chart as an attachment in email in Lightning component

I want to save the canvas chart as an image in attachment unfortunately i didn't get any way to do that.Please help me. This is my code. createGraph: function (component, temp) { component.set("v....
1
vote
0answers
17 views

How to show Chart in Visualforce page which has renderas = pdf [duplicate]

I have VF page with renderAs = PDF. I want to display a chart on that PDF? I have tried https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_charting_example.htm and Display ...
0
votes
0answers
12 views

Color Code Chart by years When X-axis is displaying Start Date Quater

My report chart is colourful but not useful. The report chart shows color for each quaters from 2017 to 2019. It is hard to read . Please let me know how can I change the color code by years. Example, ...
0
votes
0answers
17 views

Chartsjs shows charts in different sizes

I have 3 charts included on my lightning component. I am not sure why all 3 charts have different sizes. I am just trying to make it the same size. <li style="width:50%"> <div ...
0
votes
1answer
47 views

Is there a way to export custom devleoped Chart(Chart was developed using Chart.js) to PDF with out using any other library

I have developed a bar chart using Chart.js library in lighting as standard dashboard doesn't help me to meet my requirements. I want to export to PDF with out using any other library. I tried ...
0
votes
2answers
175 views

Pie chart not displaying in aura component [closed]

I am developing a simple pie chart which will be included in the Accounts lightning page and I've stored Chart.js(Version 2.7.3) in static resources. However I'm struggling to get it working and no ...
1
vote
0answers
24 views

Is it possible to have the report/chart filter in a VF page

Where could we the out-of-box filters on a VF page? Just like we do at the report admin page. So that everyone accesses the VF page, they can manipulate the filter by their own self. <...
0
votes
1answer
86 views

Getting error while using Chart.js

<ltng:require scripts="{!$Resource.chartJS}" afterScriptsLoaded="{!c.setup}"/> <canvas aura:id="chart" id="myChart" width="400" height="400"/> ({ setup : function(component, event,...
2
votes
0answers
37 views

Chart rerender not working

I have a visualforce page in which I lazy load elements (otherwise the page would take forever to load). I load charts with each call of a javascript function, but for whatever reason the charts do ...
1
vote
1answer
29 views

Visualforce forcing components together

I have a strange issue. I have a component that constructs a visualforce line chart: <apex:component id="ShowGraph" layout="block" controller="ControllerShowGraph" selfClosing="true"> <apex:...
0
votes
0answers
39 views

Compare Table experts needed!

Description: I have a table like below, the Price Change row which contains '300' for 2018 and '600' for 2019 is the sum of values of all products per year. Price Change is a column defined by the ...
0
votes
1answer
1k views

display report in lightning component salesforce

I have a report that needs to display its data in chart format using chart.js I am getting error: Assertion Failed!: Unable to get value for key 'chart.js'. No value provider was found for 'chart'. ...
1
vote
1answer
268 views

Custom (re)ordering of legend/bar segments in Einstein Analytics

Question: Currently I can sort bar segments of a stacked column chart in asc/desc order or keep it unsorted. However I would like to sort them in a custom fashion like in the image. How to do it with ...
1
vote
1answer
675 views

Binding (and Filtering) two listselectors independently with an Einstein Analytics Chart

Description: We are using Einstein Analytics to compare two different dates which share the same values in the same dataset. See the dataset sample image below. The dates are string fields and in the ...
2
votes
2answers
327 views

Variance Analysis using Einstein -Wave- Analytics

Description: We are using Einstein Analytics to create more insight on products our customers have, this requires creation of Einstein Analytics dataflows, datasets, dashboards and apps. We have a ...
0
votes
1answer
35 views

Help with Visualforce PieChart

ChartController: public class DonutChartController { public List<PieWedgeData> getPieData() { Id userId = UserInfo.getUserId(); User loggedInUser = [Select Id, Email, ProfileId From ...
0
votes
1answer
395 views

How to display column and stacked column bars in a chart in Einstein Analytics?

Description: Einstein Analytics dashboards contains different chart types to select. Column and stacked column charts are only two out of tens available. Question Is it possible to use column bars ...
3
votes
0answers
405 views

Embed report chart in a Lightning component to parametrize its filters

I have a report which doesn't filter by Lookups but by String field values. I want to show this chart on the record pages of a related record. But I am not sure how I pass in filter criteria into the ...
1
vote
1answer
973 views

How to create cumulative line chart in Analytics Studio?

According to the release notes Summer '16 (Release Notes) we should be able to create cumulative line charts in Einstein Analytics. However, I was not able to find any more documentation about this. ...
0
votes
1answer
253 views

How to add title to a pie chart in visualforce?

I understand that there is no title attribute for apex:pieSeries so is there any other way to display a title for a pie chart? (besides using html tags)
1
vote
1answer
810 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 ...
1
vote
1answer
326 views

SAQL - When I dynamically create dates in SAQL and group them, I can't use the “Timeline” chart

I try to create a timeline chart for every year for products on the market that are started to sell before that year and ended to sell after that year. To get my filtered data I filter them like I ...
0
votes
2answers
127 views

I am trying to draw a bar chart on a vf page using remoteaction method that returns a json response

Need help figuring why my results list is blank coming from a json response when building a chart on my vf page. Any help is greatly appreciated. Below is my controller: global with sharing class ...
0
votes
1answer
1k views

Gantt chart for Salesforce

I'm looking for some library, possibly free, to make gantt chart with Salesforce classic and lightning. Do you know anything of these? Since, I will use in Lightning, it should be Locker Service ...
1
vote
0answers
110 views

Chart using json from external url

Is there a way to have a salesforce native chart use a url that provides JSON as the data for the chart? I keep reading about lightning connect and OData to connect to an external database, but I'm ...
3
votes
1answer
213 views

The property String data is referenced by Visualforce Page (Chart) in salesforce.com. Remove the usage and try again. at line 3 column 19

I found this example to make a chart with visual-force but it gives the following error:The property String data is referenced by Visual-force Page (Chart) in salesforce.com. Remove the usage and ...
1
vote
1answer
521 views

How to implement Custom Home Dashboard using Chart.Js in Lightning

We have to pull Reports and Dashboard on the Home Page of Lightning, I know we have to use Reports and Dashboards Metadata API and Chart.Js, However I'm struggling to understand it's design
4
votes
0answers
205 views

How to parse the matrix report data in to apex controller to show it in chart?

I am trying to pass the matrix type report into a google chart, but for that i need to parse the data.i have tried to do that but i didn't get any matrix grouping function since i am new to report ...
1
vote
1answer
12 views

Dashboard - How to make a component show the largest single sale from an opportunity (closed won)?

How can I make a component show the largest sale for the calendar month? It's for one team - they want to see who had the largest sale of the month. Every time I try to build a report & then ...
0
votes
2answers
484 views

Build a donut Chart in visualforce Case Console

I need to Build a pie chart on a visualforce page that I used in Case Console as Top component. This pie Chart must show the Cases: Open and Closed (Image below). There is a simple way to build this ...
3
votes
1answer
120 views

Script not being executed but rendered instead - Lightning - Spring 17 - Patch 6.0

Using Chart.js (v.2.3.0) and Moment.js (v.2.9.0), I am rendering a Chart.js bubble chart in a lightning component and I am setting a custom tooltip and the x-axis labels to formatted dates. sample ...
1
vote
0answers
154 views

Printable View Renders My Chart To PDF

I have a custom object and in the layout I have a Visualforce Page displayed. The VF utilizes <apex:chart> and JS to create graph based on field in the object. I want to create a report of the ...
0
votes
1answer
122 views

Static gauge data in Visualforce page

Currently I am developing a visualforce page to change the display of a custom object. <apex:page standardController="CustomObject__c" > ... Our customers wish to have a gauge chart which ...
1
vote
0answers
289 views

Why charts axis labels are displayed differently?

I have a dashboard with various reports shown as charts in lightning in two environments. One is my dev and another is a test environment. Now for some odd reason, the charts are displayed a little ...
2
votes
1answer
3k views

Uncaught TypeError: Right-hand side of 'instanceof' is not an object throws at /resource/chartjs:6:15548 | Salesforce Lightning and Chart.Js

I am encountering below issue while working with chart.js library in salesforce lightning component . I see the below error when i hover or click on the doughnut chart generated . Any help is greatly ...
1
vote
0answers
284 views

How to draw bullet chart in Lightning component?

Is there any js library to draw bullet chart in Lightning component ? I have tried with d3.js and bullet.js in two different approaches but failed. I created lightning component and in helper method, ...
2
votes
0answers
46 views

analytics:reportChart not displayed when rerendered

I have a custom component, which contains analytics:reportChart. I need it to be displayed, when other component is loaded, but sometimes it isn't showed. Component Chart2 contains analytics:...
2
votes
2answers
3k views

Chart.js & Lightning Components

We've used the open source chart.js to implement our charts in lightning components but we've noticed that if the chart's data set changes, e.g. a picklist that the user can select a different value ...
1
vote
1answer
1k 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 ...
1
vote
1answer
609 views

Cumulative value in report

I want to create report where you comparing opportunity amount each month in 1 year & cumulative amount for each month, for example: jan vs jan+feb. feb vs jan+feb+mar. mar vs jan+feb+mar+apr, ...
3
votes
1answer
121 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="...
0
votes
1answer
623 views

Pie Chart not showing anything on Visualforce Page

The pie chart showing nothing but a blank page. Please find codes in the attached screenshots <apex:page standardController="case" extensions="CaseController" > <apex:sectionHeader ...
0
votes
1answer
50 views

Dashboard chart components appearing in black and white for end users

I can't find a single thing online about this issue. Very simply, as an admin I'm creating chart components on a public dashboard and sharing this with other non admin users. The dashboards ...
-4
votes
1answer
37 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
1
vote
1answer
155 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> ...
0
votes
1answer
112 views

Apex chart is displayed just Once and then it disappears

I have a problem, i want to display a two charts when show button is clicked and hide them when the hide button is clicked. but it works only the first time i click on the show button (the hide ...
1
vote
1answer
112 views

Display two lists in Apex chart

Currently, onclick of a button, I'm displaying a bar chart with all data available in that object for that particular filters (using Javascript Remote Action). List<AggregateResult> ListName = ...
0
votes
1answer
112 views

How to toggle Visualforce charts?

I want to know if it's possible to do the following: When I click on a command button I hide/dispaly a chart just below it. I wrote the toggling in JavaScript code but the chart is not displaying. ...
3
votes
1answer
431 views

Line Graph not showing value in apex:chart

I am creating one line bar graph using apex:chart . In this graph values are not getting displayed. Here is the following code for it VF Page <apex:chart height="400" width="900" data="{!...