nate-strauser/meteor-cookbook

How to integrate your tutorials?

Closed this issue · 2 comments

Hi Nate,

I am fairly new to meteor. How do I integrate your tutorials, for example the bar charts into a meteor app which I create?

Thanks,

Seth

well its hard to know exactly what you mean by 'integrate'

once you have a rough application up and running, you should be able to copy and then rename the files here https://github.com/nate-strauser/meteor-cookbook/tree/master/d3/d3-example/client/bar - you could place the template in the html file right into your application

take a look at the data that creates that chart - if you can get your data into a similar format, it should be pretty straightforward subtition of collection names

lets say you had a collection 'Contracts' with data that looked like

{
name:'xyz contact',
value:1000,
description:'...'
....
}

if that case you could just swap out the colleciton name Bars in my code for Contracts and it would just work

Thanks Nate, you understood my meaning of 'integrate' perfectly. I will try this with my meteor app to see if I can get something working.