• B1
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 3
    Replies
Hi All,

I have created a Lightning Charts, which is working fine with a dummy data. Am looking to display a realtime obejct tadat to be dispalyed in Lightning charts. Please help me out.

Code :

setupPieChart : function(component) {
        
        var data = [
            {
                value: 300,
                color:"#F7464A",
                highlight: "#FF5A5E",
                label: "Red"
            },
            {
                value: 50,
                color: "#46BFBD",
                highlight: "#5AD3D1",
                label: "Green"
            },
            {
                value: 100,
                color: "#FDB45C",
                highlight: "#FFC870",
                label: "Yellow"
            }
        ];
        
        var el = component.find('pieChart').getElement();
        var ctx = el.getContext('2d');
        new Chart(ctx).Pie(data);
    }

 
  • November 04, 2015
  • Like
  • 0

how does getter and setter methods have relationship between visualforce page and a controller...?

  • November 12, 2013
  • Like
  • 0

explain the process of dot notation and multi-dot notation in triggers....? eg:- c.MailingCity = accMap.get(c.accountID).BillingCity;

  • November 12, 2013
  • Like
  • 0

trigger AddressFieldUpdateOnContacts on Account (after update) {

    set<ID> accountIDs = new set<ID>();
    
    for(account a : Trigger.new){
        accountIDs.add(a.ID);
    }
    List<Contact> contactList = [select ID, name, accountID from contact where accountID = :accountIDs];
    
    Account a = Trigger.new[0];
    for (contact c : contactList){
        c.MailingCity = a.BillingCity;
    }
    if(contactList.size()>0)
        update contactList;

  • November 01, 2013
  • Like
  • 0

Hi,

 

Please do help me out with some frequently used tags in apex and their explaination.........

  • June 19, 2013
  • Like
  • 0

trigger AddressFieldUpdateOnContacts on Account (after update) {

    set<ID> accountIDs = new set<ID>();
    
    for(account a : Trigger.new){
        accountIDs.add(a.ID);
    }
    List<Contact> contactList = [select ID, name, accountID from contact where accountID = :accountIDs];
    
    Account a = Trigger.new[0];
    for (contact c : contactList){
        c.MailingCity = a.BillingCity;
    }
    if(contactList.size()>0)
        update contactList;

  • November 01, 2013
  • Like
  • 0