So we must assume you are measuring enough parts over time to even bother. And you want to trend this. In some kind of scheme of go back the last n subgroups from today in history and calculate the Cpk. Plot it. Then tomorrow the earliest subgroups fall out of the set replaced by newer subgroups in a "rolling Cpk."
The math could be done. You would be getting a trendable line. But the biggest question is WHY?
Capability is a statistical model that predicts if a process will be capable with a little more to it than just a bunch of shop guys standing around saying "Yep. We think we can hit that tolerance." It's done when a process is new and you don't have a lot of history. And the result is along the lines of "based on the initial sampling, we think we can do this (or not) and here's a metric."
But once it goes into production, you use SPC. At that point, why do you want to predict long term behavior based on small samplings? When you have a model that's been around for YEARS (SPC) that does exactly that.
If you really wanted to get snazzy with long running data on a trend chart, you would want to do it like this:
Pick some sample size: Let's say n=30.
For your last 30 samples you plot the average. Then you calculate your uncertainty based on your sampling size and plot average +/- uncertainy. This will generate a band that you know your mean is within. Then, you can also calculate sigma and you have to decide what sigma level you want to control it to, so let's say for argument you decide on 3 sigma. You take your average + uncertain line and shift it up by 3 sigma and your average - uncertainty line and shift it down by 3 sigma. And between THESE lines, you know that 99.97% of your parts fall within here.
Overlay that against your spec limits and you'd get everything you wanted to know.
Again - you can plot whatever you want, but Cpk is not intended to be a trended number.