{"action":"created","issue":{"url":"https://api.github.com/repos/esnet/react-timeseries-charts/issues/51","repository_url":"https://api.github.com/repos/esnet/react-timeseries-charts","labels_url":"https://api.github.com/repos/esnet/react-timeseries-charts/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/esnet/react-timeseries-charts/issues/51/comments","events_url":"https://api.github.com/repos/esnet/react-timeseries-charts/issues/51/events","html_url":"https://github.com/esnet/react-timeseries-charts/issues/51","id":156945368,"number":51,"title":"Building with Brunch","user":{"login":"matthjes","id":1440866,"avatar_url":"https://avatars.githubusercontent.com/u/1440866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthjes","html_url":"https://github.com/matthjes","followers_url":"https://api.github.com/users/matthjes/followers","following_url":"https://api.github.com/users/matthjes/following{/other_user}","gists_url":"https://api.github.com/users/matthjes/gists{/gist_id}","starred_url":"https://api.github.com/users/matthjes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthjes/subscriptions","organizations_url":"https://api.github.com/users/matthjes/orgs","repos_url":"https://api.github.com/users/matthjes/repos","events_url":"https://api.github.com/users/matthjes/events{/privacy}","received_events_url":"https://api.github.com/users/matthjes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-26T09:47:54Z","updated_at":"2016-05-26T17:54:56Z","closed_at":null,"body":"Hi,\r\nI'm fairly new to Javascript/React/Brunch etc. and I wanted to try out the time series charts. However, when I build the app using Brunch, the CSS gets compiled into a vendor.css, which is included in my index.html. But when I load the app I get an error message:\r\n\"Cannot find module: 'react-timeseries-charts/lib/baseline.css' from 'react-timeseries-charts/lib/baseline.js'\"\r\nbaseline.js has a require(\"./baseline.css\") statement, but all CSS is contained in the vendor.css.\r\n\r\nHas anyone tried using the time series charts with Brunch?"},"comment":{"url":"https://api.github.com/repos/esnet/react-timeseries-charts/issues/comments/221945723","html_url":"https://github.com/esnet/react-timeseries-charts/issues/51#issuecomment-221945723","issue_url":"https://api.github.com/repos/esnet/react-timeseries-charts/issues/51","id":221945723,"user":{"login":"pjm17971","id":1288813,"avatar_url":"https://avatars.githubusercontent.com/u/1288813?v=3","gravatar_id":"","url":"https://api.github.com/users/pjm17971","html_url":"https://github.com/pjm17971","followers_url":"https://api.github.com/users/pjm17971/followers","following_url":"https://api.github.com/users/pjm17971/following{/other_user}","gists_url":"https://api.github.com/users/pjm17971/gists{/gist_id}","starred_url":"https://api.github.com/users/pjm17971/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjm17971/subscriptions","organizations_url":"https://api.github.com/users/pjm17971/orgs","repos_url":"https://api.github.com/users/pjm17971/repos","events_url":"https://api.github.com/users/pjm17971/events{/privacy}","received_events_url":"https://api.github.com/users/pjm17971/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T17:54:56Z","updated_at":"2016-05-26T17:54:56Z","body":"In the React world, just modify the timeseries you are passing into the chart and have it re-render.\r\n\r\nThink in terms of what is my state, how does it change, and how do I render it? Your series is your state. You modify it by loading new data. And you render it by passing it to the chart.\r\n\r\nFor our applications we poll our server for the new data every 30 sec for the new timerange (say last day) and get back a new timeseries for that period, or we request blocks and merge them together. It's kind of up to you. But the series can change (each re-render if necessary).\r\n\r\nIn the 0.9 branch, which will soon be merged in and released, there's an example of realtime data.\r\n"}}
{"actor":{"display_login":"pjm17971"}}