This is not a law issue, this is people not giving any fucks about local elections. Few people know the name of their city mayor, even less know the name of the county's DA and nobody knows their city council rep. And these are the people who affect one's quality of life much more than the POTUS or state's representation in the US Congress.
You can have all the laws you want but if the DA does not charge then there is nothing you can do, even if arrested, the criminal walks free. And the police eventually stops investigating and making arrests for the crimes that the DA won't charge. And the DA will get re-elected because the voters, as stated above, have no clue, don't know who is the DA or what does he or she do.