estoy usando PieChart y no se ve en IE
Hola buen día.
Pues eso, tengo una ventanita que abro y tiene una gráfica de tipo pieChart y en firefox se ve bien, no asi en IE 7. Pongo el código para que vean:
<script type="text/javascript">
//the namespace for this tutorial
Ext.ns('com.quizzpot.tutorial');
com.quizzpot.tutorial.Charts = {
init: function(){
var ModulePath = 'codigos/procesos/'; //change
app.resizeWin(app.mainWin, 500,500);
////////
//
// store de los totales
//
var storeTotales=new Ext.data.JsonStore({
url:ModulePath+'ajax_totales.php',
root: 'rows',
totalProperty: 'total',
fields: [
{name:'d_nivel', type: 'string', mapping:'d_nivel'},
{name:'total', type: 'int', mapping: 'total'},
]
});
storeTotales.load();
var pieChart = new Ext.chart.PieChart({
store: storeTotales,
dataField: 'total',
categoryField : 'd_nivel'
});
var panel3 = new Ext.Panel({
items:[pieChart]
});
var main = new Ext.Panel({
//renderTo: 'frame',
frame:false,
defaults: {
collapsible: false,
border:false,
titleCollapse: false
},
items: [panel3]
});
main.render('frame');
//panel1.render("frame");
}
}
Ext.onReady(com.quizzpot.tutorial.Charts.init,com.quizzpot.tutorial.Charts);
</script>
<div id="frame"></div>
Saludos y GraciasPrueba con esto:
URL_CHART : VIRTUAL_DIRECTORY + 'Content/ExtJS 3.0/resources/charts.swf' Ext.chart.Chart.CHART_URL = App.utils.constants.URL_CHART;debes de decirle donde esta el archivo charts.swf
Te pongo el codigo completo :
App = {};
App.utils = {};
App.utils.constants = function(){
var VIRTUAL_DIRECTORY = "/";
return {
BLANK_IMAGE_URL : VIRTUAL_DIRECTORY + 'Content/ExtJS 3.0/resources/images/default/s.gif',
ICONS_PATH : VIRTUAL_DIRECTORY + 'Content/images/silk/icons/',
URL_BASE_PATH : VIRTUAL_DIRECTORY,
URL_IMG_EMPLE : VIRTUAL_DIRECTORY + 'Content/images/entidad/',
URL_CONTENT_PATH : VIRTUAL_DIRECTORY + 'Content/',
URL_CHART : VIRTUAL_DIRECTORY + 'Content/ExtJS 3.0/resources/charts.swf'
};
}();
VIRTUAL_DIRECTORY = es la carpeta raiz donde quedara montada la aplicacion ya en produccion
saludosHola, gracias por la respuesta, sólo que tengo algunas preguntas
URL_CHART : VIRTUAL_DIRECTORY + 'Content/ExtJS 3.0/resources/charts.swf' Ext.chart.Chart.CHART_URL = App.utils.constants.URL_CHART;VIRTUAL_DIRECTORY qué es? me sale un error de que no existe, se lo quité y luego me salió que App.utils no existe, cambié la A por una a, quedando asi: app.utils.constants.URL_CHART y me sigue saliendo el mismo error. Puse el código dentro y fuera de la función Init y me da el mismo error, estoy haciendo algo mal o está mal escrito lo que me pusiste? Saludos y Gracias
¿Conoces a alguien que pueda responder esta pregunta? Comparte el link en Twitter o Facebook
Es necesario registrarse para poder participar en el foro! Si ya tienes una cuenta puedes entrar y comentar en este foro.
