{"action":"created","issue":{"url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/57","labels_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/57/comments","events_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/57/events","html_url":"https://github.com/kevinkhill/lavacharts/issues/57","id":91315313,"number":57,"title":"lava.loadData NumberFormat","user":{"login":"farr433","id":3854190,"avatar_url":"https://avatars.githubusercontent.com/u/3854190?v=3","gravatar_id":"","url":"https://api.github.com/users/farr433","html_url":"https://github.com/farr433","followers_url":"https://api.github.com/users/farr433/followers","following_url":"https://api.github.com/users/farr433/following{/other_user}","gists_url":"https://api.github.com/users/farr433/gists{/gist_id}","starred_url":"https://api.github.com/users/farr433/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farr433/subscriptions","organizations_url":"https://api.github.com/users/farr433/orgs","repos_url":"https://api.github.com/users/farr433/repos","events_url":"https://api.github.com/users/farr433/events{/privacy}","received_events_url":"https://api.github.com/users/farr433/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kevinkhill","id":266076,"avatar_url":"https://avatars.githubusercontent.com/u/266076?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinkhill","html_url":"https://github.com/kevinkhill","followers_url":"https://api.github.com/users/kevinkhill/followers","following_url":"https://api.github.com/users/kevinkhill/following{/other_user}","gists_url":"https://api.github.com/users/kevinkhill/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinkhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinkhill/subscriptions","organizations_url":"https://api.github.com/users/kevinkhill/orgs","repos_url":"https://api.github.com/users/kevinkhill/repos","events_url":"https://api.github.com/users/kevinkhill/events{/privacy}","received_events_url":"https://api.github.com/users/kevinkhill/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-06-26T17:34:39Z","updated_at":"2015-06-27T02:29:31Z","closed_at":null,"body":"I have a graph that has a store's sales by default but a button lets the user select labor or cost of goods. Then the graph sends a new request and reloads that table data into the graph using the lava.loadData function. I think the function contains an automatic redraw but is there anyway I could get it to apply my NumberFormat? I know I am using is correctly and functions fine on the initial draw but when I use the function \"lava.loadData\" the data loads and redraws beautifully just without my NumberFormat where I am specifying a prefix and pattern when I create the initial column server side.\r\n\r\nI'm thinking while typing this up and maybe If I can echo out that Lava::NumberFormat object right before the lava.loadData function call or inside the function? I feel like the function should look for the NumberFormat object and apply it if specified or I could just be doing it wrong. Hopefully you understand what I am saying and I can provide code to clear up confusion if needed."},"comment":{"url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/comments/115937894","html_url":"https://github.com/kevinkhill/lavacharts/issues/57#issuecomment-115937894","issue_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/57","id":115937894,"user":{"login":"farr433","id":3854190,"avatar_url":"https://avatars.githubusercontent.com/u/3854190?v=3","gravatar_id":"","url":"https://api.github.com/users/farr433","html_url":"https://github.com/farr433","followers_url":"https://api.github.com/users/farr433/followers","following_url":"https://api.github.com/users/farr433/following{/other_user}","gists_url":"https://api.github.com/users/farr433/gists{/gist_id}","starred_url":"https://api.github.com/users/farr433/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farr433/subscriptions","organizations_url":"https://api.github.com/users/farr433/orgs","repos_url":"https://api.github.com/users/farr433/repos","events_url":"https://api.github.com/users/farr433/events{/privacy}","received_events_url":"https://api.github.com/users/farr433/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T02:29:31Z","updated_at":"2015-06-27T02:29:31Z","body":"You are awesome man, thanks for all of your hard work. I couldn't imagine testing a public package with all of weird combinations users would try!\n\n\n\n\n\nOn Fri, Jun 26, 2015 at 7:16 PM -0700, \"Kevin Hill\" <notifications@github.com> wrote:\n\n\n\n\n\n\n\n\n\n\n\n\nhmmmmm, so I am seeing that the format blocks are added only on the first draw. When the you call the toJson() method on the datatable, the formats are not even included! You have found a bug I never thought to try and test. I will start looking into how to pass the formats along with the data and options so the lava.loadData() method can add them to the redraw.\n\n\n\n—\nReply to this email directly or view it on GitHub."}}