sjkp / heatmap

The PowerBI Heatmap Visual enables users to draw a heatmap overlay from a X, Y coordinate set on to an existing image. The user specify the image, and provide a data set of X, Y coordinates and optionally an intensity for each data point. The radius and the bluriness of the heatmap bubbles can be customized as well as the max value for the intensity.
20 stars 7 forks source link

build breaks on recent versions of the pbiviz tool #1

Closed sjkp closed 8 years ago

sjkp commented 8 years ago

But the Code on GitHub failed in building step (both in Visual studio or gulp commandline), with following errors: ERROR in ./src/Clients/PowerBIVisualsPlayground/sampleData.ts (53,33): error TS2339: Property 'MapByYearData' does not exist on type 'typeof sampleDataViews'.

ERROR in ./src/Clients/Visuals/plugins.ts (356,23): error TS2304: Cannot find name 'HeatMapChart'.

ERROR in ./src/Clients/Visuals/plugins.ts (357,27): error TS2304: Cannot find name 'HeatMapChart'. [05:52:38] 'build' errored after 1.12 min

I tried to manually add MapData.ts in src\Clients\PowerBIVisualsPlayground_references.ts and heatMap.ts in src\Clients\Visuals_references.ts Which resolved the above errors but brought up new errors: ERROR in ./src/Clients/Visuals/visuals/heatMap.ts (148,39): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.

ERROR in ./src/Clients/Visuals/visuals/heatMap.ts (154,13): error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'number[]'. Property 'push' is missing in type 'Uint8ClampedArray'.

ERROR in ./src/Clients/Visuals/visuals/heatMap.ts (352,33): error TS2345: Argument of type '{ x: string | number | boolean | Date; y: string | number | boolean | Date; i: string | number | ...' is not assignable to parameter of type 'HeatMapData'. Types of property 'x' are incompatible. Type 'string | number | boolean | Date' is not assignable to type 'number'. Type 'string' is not assignable to type 'number'. [06:51:54] 'build' errored after 1.15 min