In 2017, Michigan had about 313,00 residents with medical marijuana cards -- about 3 percent of the state population.

The No. 1 county based on percentage: Montmorency, in the northeast corner of the Lower Peninsula, where 5.9 percent of residents had a medical marijuana card.

Below is a ranking of Michigan's 83 counties according to percentage of residents with a medical marijuana card in 2017.

But first, here's a map showing the statewide trend.

Scott Levin/MLive

You can put your cursor over a county to see the underlying data.

The numbers come from the Michigan Department of Licensing and Regulatory Affairs.

The ranking below also includes the breakdown of patients vs. caregivers with cards.

Since 2011, the number of patients with medical marijuana cards has more than doubled, from about 119,400 to 269,553. But the number of caregivers with cards has dropped slightly, from 45,252 to 43,744.

1. Montmorency County: 5.9%

1. Montmorency County: 5.9%

Montmorency had 547 medical marijuana cardholders in 2017, which includes 455 patients and 92 caregivers. That compares to 266 patients and 98 caregivers in 2011. The number of patient cardholders increased by 71% during that time, and dropped by -6% for caregivers.

2. Kalkaska County: 5.8%

2. Kalkaska County: 5.8%

Kalkaska had 1,029 medical marijuana cardholders in 2017, which includes 864 patients and 165 caregivers. That compares to 562 patients and 194 caregivers in 2011. The number of patient cardholders increased by 54% during that time, and dropped by -15% for caregivers.

3. Arenac County: 5.4%

3. Arenac County: 5.4%

Arenac had 818 medical marijuana cardholders in 2017, which includes 687 patients and 131 caregivers. That compares to 328 patients and 80 caregivers in 2011. The number of patient cardholders increased by 109% during that time, and by 64% for caregivers.