Если Bokeh загружается в html-теге iframe
, вы можете написать скрипт после загрузки всех других js-скриптов внизу html-страницы.
<script>
$('#tbc-id iframe').load(function(){
$('#tbc-id').css({height: 1700}) //make container height to 1700px
$(this).css({height: 1700}) //make iframe height match the container
});
</script>
One of the many factors that motivated the Core Plot project was the lack of good plotting frameworks on the iPhone. Core Plot also encompases many other use cases including desktop systems, but its design has included iPhone support from the beginning. It's getting pretty close to useable and is currently in use in several shipping iPhone and OS X applications.
Edit 2/10
Core Plot has come a long way since I first posted the summary. The framework now has bar charts (including horizontal bar charts, I believe), axis labels (including aribrarty rotations), and fills and backgrounds for graphs. I'm not sure about stacked bar charts, but it wouldn't be hard to add to the CPBarPlot
class that implements bar charts. As for annotations, there is a CPAnotation
class which you could subclass to add your annotations, if there isn't the exact functionality you need.
Project on github.
Я провел свой собственный поиск год или два назад и закончил тем, что делал свои собственные классы линейного графика, потому что я не мог не найти ничего, что работало бы так, как мне было нужно. Однако следует обратить внимание на два больших аспекта: SM2DGraphView и GraphX . Я не пробовал ни в одном из проектов iPhone, но я знаю, что SM2DGraphView - это открытый исходный код, поэтому вы можете изменить его при необходимости.
Я также рассмотрел вопрос об использовании WebView для использования графической библиотеки JavaScript, но это всего лишь мысль.
Теоретически вы можете использовать Google Chart API вместе с оболочкой какао . Это может быть легким решением.