You could check the tutorial at https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/StaticObjects.md. And there are enough repositories at https://github.com/Microsoft?utf8=%E2%9C%93&q=PowerBI-visuals&type=&language= for your reference.