I can see a scenario in which a "chaotic good" hacker uses a customized form of ransomware on some large corporation or extremely wealthy person in order to force them to make a donation or do some majorly positive action for the world.¹ Pulling this off without going against the "good" qualification would require appropriately selecting the target and files to encrypt, and appropriately phrasing the demands made to that target: you want to choose a target that has a lot of unused money to give, you have to make sure that the files tied up are not things that other, more disadvantaged people would need, and you want to make sure that the requested positive action is both positive and not reversible by the other party after the fact.
Needless to say, deploying the ransomware discussed in the link would not be a chaotic good act. More like neutral or chaotic evil.
¹ And just to be clear, don't actually do this. I'm never going to do this, never have done this, certainly am not doing it at the moment, and I advise that no one else actually do this. There are better ways to use your time.