fill", function (d,i) {
                return province_color_themeriver[d]});
			
            // draw legend text
            legend.append("text")
            .data(keysall)
            .attr("class", "legend_text")
            .attr("x", 40)
            .attr("y", 9)
            .attr("dy", ".2em")
            .attr("fill", '#333333')
            .style("text-anchor", "start")
            .text(d => d);
        };
        
        const render = function(data, keys, area){
            let g;
            